summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio/test_sock_lowlevel.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-09-06 23:58:03 (GMT)
committerGitHub <noreply@github.com>2023-09-06 23:58:03 (GMT)
commita52a3509770f29f940cda9307704908949912276 (patch)
treeafa301d81a96413dea950cc75ca2f3275ca9073c /Lib/test/test_asyncio/test_sock_lowlevel.py
parent60a9eea3f56c002356998f5532b3ad870a1ffa8e (diff)
downloadcpython-a52a3509770f29f940cda9307704908949912276.zip
cpython-a52a3509770f29f940cda9307704908949912276.tar.gz
cpython-a52a3509770f29f940cda9307704908949912276.tar.bz2
gh-109015: Add test.support.socket_helper.tcp_blackhole() (#109016)
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2).
Diffstat (limited to 'Lib/test/test_asyncio/test_sock_lowlevel.py')
-rw-r--r--Lib/test/test_asyncio/test_sock_lowlevel.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_sock_lowlevel.py b/Lib/test/test_asyncio/test_sock_lowlevel.py
index b829fd4..075113c 100644
--- a/Lib/test/test_asyncio/test_sock_lowlevel.py
+++ b/Lib/test/test_asyncio/test_sock_lowlevel.py
@@ -10,6 +10,10 @@ from test.test_asyncio import utils as test_utils
from test import support
from test.support import socket_helper
+if socket_helper.tcp_blackhole():
+ raise unittest.SkipTest('Not relevant to ProactorEventLoop')
+
+
def tearDownModule():
asyncio.set_event_loop_policy(None)