Kaydet (Commit) 0360a9d0 authored tarafından Antoine Pitrou's avatar Antoine Pitrou Kaydeden (comit) GitHub

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

üst 9ed34a89
...@@ -4683,8 +4683,8 @@ class TestUnixDomain(unittest.TestCase): ...@@ -4683,8 +4683,8 @@ class TestUnixDomain(unittest.TestCase):
raise raise
def testUnbound(self): def testUnbound(self):
# Issue #30205 # Issue #30205 (note getsockname() can return None on OS X)
self.assertEqual(self.sock.getsockname(), '') self.assertIn(self.sock.getsockname(), ('', None))
def testStrAddr(self): def testStrAddr(self):
# Test binding to and retrieving a normal string pathname. # Test binding to and retrieving a normal string pathname.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment