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 7e49f90 commit e231103
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,21 @@ def test_run_distributed(args):
if core_fraction > 0:
pytest.raises(
ZeroDivisionError,
call_wrapper(args),
call_wrapper,
args=(args,),
match="division by zero",
)
else:
pytest.raises(
ModuleNotFoundError,
call_wrapper(args),
call_wrapper,
args=(args,),
match="Currently dask.distrubuted is not installed",
)
else:
pytest.raises(
ModuleNotFoundError,
call_wrapper(args),
call_wrapper,
args=(args,),
match="Currently dask.distrubuted is not installed",
)

0 comments on commit e231103

Please sign in to comment.