python38/python-3.3.0-fix-urllibnet-test.patch

14 lines
732 B
Diff
Raw Normal View History

2013-03-05 17:31:30 +04:00
--- 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)