summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r--Lib/test/test_socket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py
index 5e37fc6..f28f7d6 100644
--- a/Lib/test/test_socket.py
+++ b/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.