summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_urllib2.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_urllib2.py')
-rw-r--r--Lib/test/test_urllib2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index e590111..c8be440 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -683,8 +683,13 @@ class HandlerTests(unittest.TestCase):
self.msg = msg
self.status = status
self.reason = reason
+ self.code = 200
def read(self):
return ''
+ def info(self):
+ return {}
+ def geturl(self):
+ return self.url
class MockHTTPClass:
def __init__(self):
self.level = 0