[Python-checkins] r69429 - python/branches/py3k/Lib/test/test_urllib.py
nick.coghlan
python-checkins at python.org
Sun Feb 8 05:01:00 CET 2009
Author: nick.coghlan
Date: Sun Feb 8 05:01:00 2009
New Revision: 69429
Log:
Fix broken socket.makefile emulation in test_urllib
Modified:
python/branches/py3k/Lib/test/test_urllib.py
Modified: python/branches/py3k/Lib/test/test_urllib.py
==============================================================================
--- python/branches/py3k/Lib/test/test_urllib.py (original)
+++ python/branches/py3k/Lib/test/test_urllib.py Sun Feb 8 05:01:00 2009
@@ -146,7 +146,8 @@
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)
More information about the Python-checkins
mailing list