mirror of
https://github.com/python/cpython.git
synced 2025-08-17 07:11:51 +00:00
[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 a52a350977
)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
579d782276
commit
c9dc2bc0de
7 changed files with 79 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue