Skip to content

Commit

Permalink
Just skip test_jupyter tests for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger committed Mar 5, 2024
1 parent b1fa686 commit 049dcd0
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion distributed/tests/test_jupyter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,18 @@

pytestmark = pytest.mark.filterwarnings("ignore:Jupyter is migrating its paths")

if WINDOWS:
try:
import jupyter_server # noqa: F401
except ImportError:
pass
else:
pytest.skip(
allow_module_level=True,
reason="Windows struggles running these tests w/ jupyter server",
)


@pytest.mark.skipif(WINDOWS, reason="ValueError: I/O operation on closed file")
@gen_test()
async def test_jupyter_server():
async with Scheduler(jupyter=True) as s:
Expand Down

0 comments on commit 049dcd0

Please sign in to comment.