Browse Source

Fix tests: getsockname() can return None on OS X on unbound sockets (#1400)

pull/1410/head
Antoine Pitrou 9 years ago
committed by GitHub
parent
commit
0360a9d015
  1. 4
      Lib/test/test_socket.py

4
Lib/test/test_socket.py

@ -4683,8 +4683,8 @@ class TestUnixDomain(unittest.TestCase):
raise
def testUnbound(self):
# Issue #30205
self.assertEqual(self.sock.getsockname(), '')
# Issue #30205 (note getsockname() can return None on OS X)
self.assertIn(self.sock.getsockname(), ('', None))
def testStrAddr(self):
# Test binding to and retrieving a normal string pathname.

Loading…
Cancel
Save