diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-06 23:58:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-06 23:58:03 (GMT) |
commit | a52a3509770f29f940cda9307704908949912276 (patch) | |
tree | afa301d81a96413dea950cc75ca2f3275ca9073c /Lib/test/test_asyncio/test_sock_lowlevel.py | |
parent | 60a9eea3f56c002356998f5532b3ad870a1ffa8e (diff) | |
download | cpython-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.py | 4 |
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) |