mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix tests: getsockname() can return None on OS X on unbound sockets (#1400)
This commit is contained in:
parent
9ed34a8953
commit
0360a9d015
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue