Backport bpo-30205 to 3.6 (#1403)

This commit is contained in:
Antoine Pitrou 2017-05-03 00:14:29 +02:00 committed by GitHub
parent 4dae0d111d
commit 0c2ff0898d
3 changed files with 9 additions and 3 deletions

View file

@ -4660,6 +4660,10 @@ class TestUnixDomain(unittest.TestCase):
else:
raise
def testUnbound(self):
# Issue #30205
self.assertIn(self.sock.getsockname(), ('', None))
def testStrAddr(self):
# Test binding to and retrieving a normal string pathname.
path = os.path.abspath(support.TESTFN)