We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7bf41 commit 5658600Copy full SHA for 5658600
nx_parallel/utils/tests/test_chunk.py
@@ -24,9 +24,7 @@ def test_get_n_jobs():
24
assert nxp.get_n_jobs() == 3
25
26
# Test with nx-parallel's context
27
- nxp_config = nx.config.backends.parallel
28
-
29
- with nxp_config(active=True, n_jobs=5):
+ with nx.config.backends.parallel(active=True, n_jobs=5):
30
assert nxp.get_n_jobs() == 5
31
32
# Test with n_jobs = 0 to raise a ValueError
0 commit comments