← Back to DAGDA | Support | Source: https://github.com/python/cpython/commit/198a0d622a696a4c234aa7866d6c15e38839cc76
Skip to content

Commit 198a0d6

Browse files
bpo-35518: Skip test that relies on a deceased network service. (GH-15349)
If this service had thoroughly vanished, we could just ignore the test until someone gets around to either recreating such a service or redesigning the test to somehow work locally. The `support.transient_internet` mechanism catches the failure to resolve the domain name, and skips the test. But in fact the domain snakebite.net does still exist, as do its nameservers -- and they can be quite slow to reply. As a result this test can easily take 20-30s before it gets auto-skipped. So, skip the test explicitly up front. (cherry picked from commit 5b95a15) Co-authored-by: Greg Price <gnprice@gmail.com>
1 parent 35f9bcc commit 198a0d6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Lib/test/test_timeout.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def setUp(self):
106106
def tearDown(self):
107107
self.sock.close()
108108

109+
@unittest.skipIf(True, 'need to replace these hosts; see bpo-35518')
109110
def testConnectTimeout(self):
110111
# Choose a private address that is unlikely to exist to prevent
111112
# failures due to the connect succeeding before the timeout.

0 commit comments

Comments
 (0)