]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix broken socket.makefile emulation in test_urllib
authorNick Coghlan <ncoghlan@gmail.com>
Sun, 8 Feb 2009 04:01:00 +0000 (04:01 +0000)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 8 Feb 2009 04:01:00 +0000 (04:01 +0000)
Lib/test/test_urllib.py

index a46f4219edfcc738dbe3dd457083d7a999cd12f2..a684ed422ade4f0127548bc0a9de4ee286b439eb 100644 (file)
@@ -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)