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.
........
This commit is contained in:
Georg Brandl 2010-03-14 10:45:50 +00:00
parent 7a4f7d92f0
commit 1b37e8728c
55 changed files with 25 additions and 98 deletions

View file

@ -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