mirror of
https://abf.rosa.ru/djam/python38.git
synced 2025-02-23 15:22:50 +00:00
14 lines
732 B
Diff
14 lines
732 B
Diff
![]() |
--- Python-3.3.0/Lib/test/test_urllibnet.py.bero 2013-01-17 16:14:46.177742527 +0100
|
||
|
+++ Python-3.3.0/Lib/test/test_urllibnet.py 2013-01-17 16:17:09.843089767 +0100
|
||
|
@@ -118,6 +118,10 @@ class urlopenNetworkTests(unittest.TestC
|
||
|
socket.gethostbyname(bogus_domain)
|
||
|
except socket.gaierror:
|
||
|
pass
|
||
|
+ except TimeoutError:
|
||
|
+ # Happens in chroots with bogus setups and "secured" build
|
||
|
+ # environments that just drop all traffic
|
||
|
+ self.skipTest("test_bad_address skipped due to timeout")
|
||
|
else:
|
||
|
# This happens with some overzealous DNS providers such as OpenDNS
|
||
|
self.skipTest("%r should not resolve for test to work" % bogus_domain)
|