Skip to content

Commit

Permalink
Only run eventlet tests in Linux.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-vanderheijden committed Sep 22, 2024
1 parent 68cbcdf commit a439f9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
7 changes: 0 additions & 7 deletions tests/markers.py

This file was deleted.

9 changes: 6 additions & 3 deletions tests/test_isolated.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
import pytest
import importlib

from .markers import cpython_only
from watchdog.utils import platform

from .utils import run_isolated_test


@cpython_only
# Kqueue isn't supported by Eventlet, so BSD is out
# Current usage ReadDirectoryChangesW on Windows is blocking, though async may be possible
@pytest.mark.skipif(not platform.is_linux(), reason="Eventlet only supported in Linux")
def test_observer_stops_in_eventlet():
if not importlib.util.find_spec('eventlet'):
pytest.skip("eventlet not installed")

run_isolated_test('eventlet_observer_stops.py')


@cpython_only
@pytest.mark.skipif(not platform.is_linux(), reason="Eventlet only supported in Linux")
def test_eventlet_skip_repeat_queue():
if not importlib.util.find_spec('eventlet'):
pytest.skip("eventlet not installed")
Expand Down

0 comments on commit a439f9a

Please sign in to comment.