File tree Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Expand file tree Collapse file tree 1 file changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,28 @@ def pywin32_missing():
19
19
importlib .import_module ('win32service' )
20
20
21
21
22
+ def old_ping_exception ():
23
+ """
24
+ Ping test has different exception on older Pythons.
25
+ """
26
+ return sys .version_info < (3 , 10 )
27
+
28
+
29
+ def broken_actions_runner ():
30
+ """
31
+ Is unprivileged ICMP unavailable?
32
+
33
+ Since Dec 2024, GitHub Actions runners no longer seem
34
+ to be able to allow unprivileged ICMP.
35
+
36
+ actions/runner-images#11614
37
+ """
38
+ return bool (os .environ .get ('GITHUB_ACTIONS' )) and (
39
+ # Unfortunately, `os.environ['RUNNER_OS']` doesn't work
40
+ platform .system () == 'Linux'
41
+ )
42
+
43
+
22
44
collect_ignore = (
23
45
[
24
46
'jaraco/net/devices/linux.py' ,
@@ -31,10 +53,9 @@ def pywin32_missing():
31
53
]
32
54
* pywin32_missing ()
33
55
+ [
34
- # ping test has different exception on older Pythons
35
56
'jaraco/net/icmp.py' ,
36
57
]
37
- * (sys . version_info < ( 3 , 10 ))
58
+ * (old_ping_exception () or broken_actions_runner ( ))
38
59
)
39
60
40
61
You can’t perform that action at this time.
0 commit comments