diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-09-08 13:12:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-08 13:12:29 (GMT) |
commit | c9dc2bc0de367308fbac1ab01a3e9ccb8cd6f5ba (patch) | |
tree | 963d03aaec3dc64e4460fb7afbdde0a2dcadf54e /Lib/test/test_asyncio/test_sock_lowlevel.py | |
parent | 579d78227627abf7edca0637de167e27946dc276 (diff) | |
download | cpython-c9dc2bc0de367308fbac1ab01a3e9ccb8cd6f5ba.zip cpython-c9dc2bc0de367308fbac1ab01a3e9ccb8cd6f5ba.tar.gz cpython-c9dc2bc0de367308fbac1ab01a3e9ccb8cd6f5ba.tar.bz2 |
[3.12] gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) (#109041)
gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016)
Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP
blackhole is enabled (net.inet.tcp.blackhole=2).
(cherry picked from commit a52a3509770f29f940cda9307704908949912276)
Co-authored-by: Victor Stinner <vstinner@python.org>
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) |