Antoine Pitrou pit...@free.fr added the comment:
Why do you need to give a non-empty body to the FakeSocket?
Other than that, looks fine.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6790
New submission from Jake McGuire j...@youtube.com:
As of Python 2.6 you can no longer pass an array to
httplib.HTTPConnection.send.
Issue1065257 added code to httplib to attempt to determine whether a
file-like object was passed to certain methods (e.g. send), and to
stream the data if so.
R. David Murray rdmur...@bitdance.com added the comment:
That method of array.array has been deprecated since 1.5.1 according to
the docs. Too bad nobody finished the job and removed it.
Perhaps array.array could be special cased in the relevant code until
the method can actually be removed.