Author: Brian Kearns <[email protected]>
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"):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to