From 047a65690d4543a64621a34cad64b02955b43cc2 Mon Sep 17 00:00:00 2001 From: Hauke Schulz <43613877+observingClouds@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:18:23 +0100 Subject: [PATCH] fix test --- tests/test_distributed.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_distributed.py b/tests/test_distributed.py index facc692..ca420b8 100644 --- a/tests/test_distributed.py +++ b/tests/test_distributed.py @@ -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,