[pypy-svn] pypy fast-forward: One more test to pass

amauryfa commits-noreply at bitbucket.org
Tue Jan 11 22:41:26 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: fast-forward
Changeset: r40600:42b8d44e60b4
Date: 2011-01-11 21:15 +0100
http://bitbucket.org/pypy/pypy/changeset/42b8d44e60b4/

Log:	One more test to pass

diff --git a/lib-python/modified-2.7.0/test/test_socket.py b/lib-python/modified-2.7.0/test/test_socket.py
--- a/lib-python/modified-2.7.0/test/test_socket.py
+++ b/lib-python/modified-2.7.0/test/test_socket.py
@@ -566,8 +566,8 @@
         neg_port = port - 65536
         sock = socket.socket()
         try:
-            self.assertRaises(OverflowError, sock.bind, (host, big_port))
-            self.assertRaises(OverflowError, sock.bind, (host, neg_port))
+            self.assertRaises((OverflowError, ValueError), sock.bind, (host, big_port))
+            self.assertRaises((OverflowError, ValueError), sock.bind, (host, neg_port))
             sock.bind((host, port))
         finally:
             sock.close()


More information about the Pypy-commit mailing list