diff options
author | Georg Brandl <georg@python.org> | 2010-02-07 17:03:15 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-02-07 17:03:15 (GMT) |
commit | a4f46e129294c686ef1effdd89c459bd9a624e6d (patch) | |
tree | d8cf84a6f4a9a1a3e7ad10f8daec0ecd5f5674cb /Lib/test/test_urllib2net.py | |
parent | dc3694bee021480980d5b66a93f69ce137ee5be4 (diff) | |
download | cpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.zip cpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.tar.gz cpython-a4f46e129294c686ef1effdd89c459bd9a624e6d.tar.bz2 |
Remove unused imports in test modules.
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r-- | Lib/test/test_urllib2net.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py index 829a467..5415145 100644 --- a/Lib/test/test_urllib2net.py +++ b/Lib/test/test_urllib2net.py @@ -6,9 +6,7 @@ from test.test_urllib2 import sanepathname2url import socket import urllib2 -import sys import os -import mimetools def _retry_thrice(func, exc, *args, **kwargs): @@ -73,7 +71,7 @@ class AuthTests(unittest.TestCase): class CloseSocketTest(unittest.TestCase): def test_close(self): - import socket, httplib, gc + import httplib # calling .close() on urllib2's response objects should close the # underlying socket @@ -154,7 +152,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 |