Author: Amaury Forgeot d'Arc <amaur...@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,
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to