summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2009-02-08 04:01:00 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2009-02-08 04:01:00 (GMT)
commit598c3a8ad1468bcec8e4b2c4ec8b3069e48289c3 (patch)
treef443dc9654a15070309836fbd018aa01679b9ae5
parent9a1d6e3022c8eb3cc3b05a30ea975da971bd5938 (diff)
downloadcpython-598c3a8ad1468bcec8e4b2c4ec8b3069e48289c3.zip
cpython-598c3a8ad1468bcec8e4b2c4ec8b3069e48289c3.tar.gz
cpython-598c3a8ad1468bcec8e4b2c4ec8b3069e48289c3.tar.bz2
Fix broken socket.makefile emulation in test_urllib
-rw-r--r--Lib/test/test_urllib.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_urllib.py b/Lib/test/test_urllib.py
index a46f421..a684ed4 100644
--- a/Lib/test/test_urllib.py
+++ b/Lib/test/test_urllib.py
@@ -146,7 +146,8 @@ class urlopen_HttpTests(unittest.TestCase):
def fakehttp(self, fakedata):
class FakeSocket(io.BytesIO):
def sendall(self, str): pass
- def makefile(self, mode, name): return self
+ def makefile(self, *args, **kwds):
+ return self
def read(self, amt=None):
if self.closed: return b""
return io.BytesIO.read(self, amt)