Commit aefe6af1 authored by Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 75855 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r75855 | antoine.pitrou | 2009-10-27 21:14:04 +0100 (mar., 27 oct. 2009) | 3 lines

  Fix transient refleaks in test_urllib2_localnet.
........
parent b0e9bd47
...@@ -221,7 +221,15 @@ class FakeProxyHandler(http.server.BaseHTTPRequestHandler): ...@@ -221,7 +221,15 @@ class FakeProxyHandler(http.server.BaseHTTPRequestHandler):
# Test cases # Test cases
class ProxyAuthTests(unittest.TestCase): class BaseTestCase(unittest.TestCase):
def setUp(self):
self._threads = test_support.threading_setup()
def tearDown(self):
test_support.threading_cleanup(*self._threads)
class ProxyAuthTests(BaseTestCase):
URL = "http://localhost" URL = "http://localhost"
USER = "tester" USER = "tester"
...@@ -329,7 +337,7 @@ def GetRequestHandler(responses): ...@@ -329,7 +337,7 @@ def GetRequestHandler(responses):
return FakeHTTPRequestHandler return FakeHTTPRequestHandler
class TestUrlopen(unittest.TestCase): class TestUrlopen(BaseTestCase):
"""Tests urllib2.urlopen using the network. """Tests urllib2.urlopen using the network.
These tests are not exhaustive. Assuming that testing using files does a These tests are not exhaustive. Assuming that testing using files does a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment