[Python-checkins] test_socket: socket.socketpair() is always available (#4634)

Victor Stinner webhook-mailer at python.org
Wed Nov 29 10:33:56 EST 2017


https://github.com/python/cpython/commit/c15bb49d71f97d400b295d88e5b075e89cb8ba20
commit: c15bb49d71f97d400b295d88e5b075e89cb8ba20
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-29T16:33:53+01:00
summary:

test_socket: socket.socketpair() is always available (#4634)

files:
M Lib/test/test_socket.py

diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index fb16d091f90..e70a8f69a7a 100644
--- a/Lib/test/test_socket.py
+++ b/Lib/test/test_socket.py
@@ -5136,8 +5136,6 @@ def test_set_inheritable_cloexec(self):
                              0)
 
 
-    @unittest.skipUnless(hasattr(socket, "socketpair"),
-                         "need socket.socketpair()")
     def test_socketpair(self):
         s1, s2 = socket.socketpair()
         self.addCleanup(s1.close)



More information about the Python-checkins mailing list