summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllibnet.py
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-04-09 14:05:19 +0000
committerMartin Panter <vadmium+py@gmail.com>2016-04-09 14:05:19 +0000
commitdb3e2bd82dd8e319bc924b85ad830f1768b8577f (patch)
treed566556a1f7f9c839de8f18a8bfd76dbaddb2d0b /Lib/test/test_urllibnet.py
parentae197c93928ba5e402f460ea0417b4595ef63d60 (diff)
parentd979b2cfcf4047b8f9b46e169cfa071e80e30d71 (diff)
downloadcpython-git-db3e2bd82dd8e319bc924b85ad830f1768b8577f.tar.gz
Issue #21069: Merge test_fileno() from 3.5
Diffstat (limited to 'Lib/test/test_urllibnet.py')
-rw-r--r--Lib/test/test_urllibnet.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/test/test_urllibnet.py b/Lib/test/test_urllibnet.py
index d5110a633f..f6df54e3b7 100644
--- a/Lib/test/test_urllibnet.py
+++ b/Lib/test/test_urllibnet.py
@@ -99,17 +99,6 @@ class urlopenNetworkTests(unittest.TestCase):
open_url.close()
self.assertEqual(code, 404)
- # On Windows, socket handles are not file descriptors; this
- # test can't pass on Windows.
- @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/") as open_url:
- fd = open_url.fileno()
- with os.fdopen(fd, 'rb') as f:
- self.assertTrue(f.read(), "reading from file created using fd "
- "returned by fileno failed")
-
def test_bad_address(self):
# Make sure proper exception is raised when connecting to a bogus
# address.