Skip to content

Commit

Permalink
Fix tests: getsockname() can return None on OS X on unbound sockets (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed May 2, 2017
1 parent 9ed34a8 commit 0360a9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/test/test_socket.py
Expand Up @@ -4683,8 +4683,8 @@ def bind(self, sock, path):
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.
Expand Down

0 comments on commit 0360a9d

Please sign in to comment.