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

This commit is contained in:
Victor Stinner 2017-11-29 16:33:53 +01:00 committed by GitHub
parent ef83806f5e
commit c15bb49d71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -5136,8 +5136,6 @@ class InheritanceTest(unittest.TestCase):
0)
@unittest.skipUnless(hasattr(socket, "socketpair"),
"need socket.socketpair()")
def test_socketpair(self):
s1, s2 = socket.socketpair()
self.addCleanup(s1.close)