(self)
| 6343 | self.assertEqual(self.sock.getsockname(), path) |
| 6344 | |
| 6345 | def testUnencodableAddr(self): |
| 6346 | # Test binding to a pathname that cannot be encoded in the |
| 6347 | # file system encoding. |
| 6348 | if os_helper.TESTFN_UNENCODABLE is None: |
| 6349 | self.skipTest("No unencodable filename available") |
| 6350 | path = os.path.abspath(os_helper.TESTFN_UNENCODABLE) |
| 6351 | self.bind(self.sock, path) |
| 6352 | self.addCleanup(os_helper.unlink, path) |
| 6353 | self.assertEqual(self.sock.getsockname(), path) |
| 6354 | |
| 6355 | @unittest.skipIf(sys.platform in ('linux', 'android'), |
| 6356 | 'Linux behavior is tested by TestLinuxAbstractNamespace') |
nothing calls this directly
no test coverage detected