[pypy-svn] pypy fast-forward: Explicitely close the server socket when done,

amauryfa commits-noreply at bitbucket.org
Wed Jan 12 00:05:49 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40605:211d74e4e131
Date: 2011-01-11 22:56 +0100
http://bitbucket.org/pypy/pypy/changeset/211d74e4e131/

Log:	Explicitely close the server socket when done, this allows the tests
	to pass

diff --git a/lib-python/modified-2.7.0/test/test_telnetlib.py b/lib-python/modified-2.7.0/test/test_telnetlib.py
--- a/lib-python/modified-2.7.0/test/test_telnetlib.py
+++ b/lib-python/modified-2.7.0/test/test_telnetlib.py
@@ -34,6 +34,7 @@
                     data += item
                 written = conn.send(data)
                 data = data[written:]
+        conn.close()
     except socket.timeout:
         pass
     finally:


More information about the Pypy-commit mailing list