mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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).
This commit is contained in:
parent
60a9eea3f5
commit
a52a350977
7 changed files with 79 additions and 0 deletions
|
@ -74,6 +74,7 @@ class TestImaplib(unittest.TestCase):
|
|||
for t in self.timevalues():
|
||||
imaplib.Time2Internaldate(t)
|
||||
|
||||
@socket_helper.skip_if_tcp_blackhole
|
||||
def test_imap4_host_default_value(self):
|
||||
# Check whether the IMAP4_PORT is truly unavailable.
|
||||
with socket.socket() as s:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue