diff options
Diffstat (limited to 'Lib/test/test_robotparser.py')
-rw-r--r-- | Lib/test/test_robotparser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py index 77cd7c4..f28d8be 100644 --- a/Lib/test/test_robotparser.py +++ b/Lib/test/test_robotparser.py @@ -309,6 +309,9 @@ class RobotHandler(BaseHTTPRequestHandler): class PasswordProtectedSiteTestCase(unittest.TestCase): def setUp(self): + # clear _opener global variable + self.addCleanup(urllib.request.urlcleanup) + self.server = HTTPServer((support.HOST, 0), RobotHandler) self.t = threading.Thread( |