Skip to content

Commit

Permalink
Ignore icmp tests on Python 3.9 and earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 18, 2024
1 parent 447ad81 commit 84e3af3
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,23 @@ def pywin32_missing():
importlib.import_module('win32service')


collect_ignore = [
'jaraco/net/devices/linux.py',
'jaraco/net/devices/win32.py',
'jaraco/net/devices/darwin.py',
] + [
# modules only import on Windows
'jaraco/net/dns.py',
] * pywin32_missing()
collect_ignore = (
[
'jaraco/net/devices/linux.py',
'jaraco/net/devices/win32.py',
'jaraco/net/devices/darwin.py',
]
+ [
# modules only import on Windows
'jaraco/net/dns.py',
]
* pywin32_missing()
+ [
# ping test has different exception on older Pythons
'jaraco/net/icmp.py',
]
* (sys.version_info < (3, 10))
)


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit 84e3af3

Please sign in to comment.