summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2net.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-03-14 10:45:50 (GMT)
commit1b37e8728c654efe928b9bc028b2f4f5621a35ea (patch)
tree78762df4462cceecbc4c155c362986288fc2dfbb /Lib/test/test_urllib2net.py
parent7a4f7d92f04e4d8c8d95e9735698cc9273d43a9d (diff)
downloadcpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.zip
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.gz
cpython-1b37e8728c654efe928b9bc028b2f4f5621a35ea.tar.bz2
Merged revisions 78093 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r--Lib/test/test_urllib2net.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index b933194..10bbd3a 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -6,7 +6,6 @@ from test.test_urllib2 import sanepathname2url
import os
import socket
-import sys
import urllib.error
import urllib.request
@@ -75,8 +74,6 @@ class AuthTests(unittest.TestCase):
class CloseSocketTest(unittest.TestCase):
def test_close(self):
- import socket, http.client, gc
-
# calling .close() on urllib2's response objects should close the
# underlying socket
@@ -150,7 +147,6 @@ class OtherNetworkTests(unittest.TestCase):
## self._test_urls(urls, self._extra_handlers()+[bauth, dauth])
def _test_urls(self, urls, handlers, retry=True):
- import socket
import time
import logging
debug = logging.getLogger("test_urllib2").debug