[pypy-commit] pypy stdlib-2.7.3: I'm sure this test passes for a bad reason on the buildbot.

amauryfa noreply at buildbot.pypy.org
Thu Jun 14 23:15:11 CEST 2012


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: stdlib-2.7.3
Changeset: r55673:c0a1b72ea0f0
Date: 2012-06-14 23:13 +0200
http://bitbucket.org/pypy/pypy/changeset/c0a1b72ea0f0/

Log:	I'm sure this test passes for a bad reason on the buildbot.

diff --git a/lib-python/2.7/test/test_socket.py b/lib-python/2.7/test/test_socket.py
--- a/lib-python/2.7/test/test_socket.py
+++ b/lib-python/2.7/test/test_socket.py
@@ -361,8 +361,8 @@
         try:
             # On some versions, this crashes the interpreter.
             socket.getnameinfo(('x', 0, 0, 0), 0)
-        except socket.error:
-            pass
+        except socket.error as e:
+            self.assertEqual(str(e), 'IPv4 sockaddr must be 2 tuple')
 
     def testNtoH(self):
         # This just checks that htons etc. are their own inverse,


More information about the pypy-commit mailing list