Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
observingClouds committed Oct 31, 2024
1 parent 5b8faaa commit 047a656
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ def distributed():
],
)
def test_run_distributed(args):
if distributed() and "--dask-distributed-local-core-fraction" in args:
if distributed():
call_wrapper(args)
elif not distributed() and "--dask-distributed-local-core-fraction" in args:
pytest.raises(
ZeroDivisionError,
call_wrapper(args),
match="division by zero",
)
elif distributed():
call_wrapper(args)
else:
pytest.raises(
ModuleNotFoundError,
Expand Down

0 comments on commit 047a656

Please sign in to comment.