summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-30 00:19:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-30 00:19:01 (GMT)
commit53f8ba52e6f64a7e352077a9a71507f4c042f7b2 (patch)
tree5cac58774e95735f76f7100766b2834b92001fa5
parent9db2ae7263d8047c29a13ad476534a4cbcdbd8f6 (diff)
downloadcpython-53f8ba52e6f64a7e352077a9a71507f4c042f7b2.zip
cpython-53f8ba52e6f64a7e352077a9a71507f4c042f7b2.tar.gz
cpython-53f8ba52e6f64a7e352077a9a71507f4c042f7b2.tar.bz2
test_urllibnet: set timeout on test_fileno()
Use the default timeout of 30 seconds to avoid blocking forever.
-rw-r--r--Lib/test/test_urllibnet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index b9b9262..d5110a6 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -104,7 +104,7 @@ class urlopenNetworkTests(unittest.TestCase):
@unittest.skipIf(sys.platform in ('win32',), 'not appropriate for Windows')
def test_fileno(self):
# Make sure fd returned by fileno is valid.
- with self.urlopen("http://www.google.com/", timeout=None) as open_url:
+ with self.urlopen("http://www.google.com/") as open_url:
fd = open_url.fileno()
with os.fdopen(fd, 'rb') as f:
self.assertTrue(f.read(), "reading from file created using fd "