Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9db2ae7 commit 53f8ba5Copy full SHA for 53f8ba5
1 file changed
Lib/test/test_urllibnet.py
@@ -104,7 +104,7 @@ def test_getcode(self):
104
@unittest.skipIf(sys.platform in ('win32',), 'not appropriate for Windows')
105
def test_fileno(self):
106
# Make sure fd returned by fileno is valid.
107
- with self.urlopen("http://www.google.com/", timeout=None) as open_url:
+ with self.urlopen("http://www.google.com/") as open_url:
108
fd = open_url.fileno()
109
with os.fdopen(fd, 'rb') as f:
110
self.assertTrue(f.read(), "reading from file created using fd "
0 commit comments