[pypy-commit] pypy default: bsd does seem to raise EINPROGRESS

bdkearns noreply at buildbot.pypy.org
Mon Mar 4 03:15:42 CET 2013


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r61984:9de22a29a217
Date: 2013-03-03 18:15 -0800
http://bitbucket.org/pypy/pypy/changeset/9de22a29a217/

Log:	bsd does seem to raise EINPROGRESS

diff --git a/pypy/module/select/test/test_kqueue.py b/pypy/module/select/test/test_kqueue.py
--- a/pypy/module/select/test/test_kqueue.py
+++ b/pypy/module/select/test/test_kqueue.py
@@ -100,10 +100,9 @@
         try:
             client.connect(("127.0.0.1", server_socket.getsockname()[1]))
         except socket.error, e:
-            if 'bsd' in sys.platform:
-                assert e.args[0] == errno.ENOENT
-            else:
-                assert e.args[0] == errno.EINPROGRESS
+            assert e.args[0] == errno.EINPROGRESS
+        else:
+            assert False, "EINPROGRESS not raised"
         server, addr = server_socket.accept()
 
         if sys.platform.startswith("darwin"):


More information about the pypy-commit mailing list