Antoine Pitrou <pitrou at 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 <report at bugs.python.org> <http://bugs.python.org/issue6790> _______________________________________