Author: Armin Rigo <[email protected]>
Branch: py3.5-noninherit
Changeset: r86574:6aa903a2fc65
Date: 2016-08-26 17:48 +0200
http://bitbucket.org/pypy/pypy/changeset/6aa903a2fc65/

Log:    add a test (passing)

diff --git a/pypy/module/_socket/test/test_sock_app.py 
b/pypy/module/_socket/test/test_sock_app.py
--- a/pypy/module/_socket/test/test_sock_app.py
+++ b/pypy/module/_socket/test/test_sock_app.py
@@ -648,6 +648,10 @@
         assert len(w) == 1, [str(warning) for warning in w]
         assert r in str(w[0])
 
+    def test_invalid_fd(self):
+        import _socket
+        raises(ValueError, _socket.socket, fileno=-1)
+
     def test_socket_non_inheritable(self):
         import _socket, posix
         s1 = _socket.socket()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to