(self, path)
| 6293 | self.sock.close() |
| 6294 | |
| 6295 | def encoded(self, path): |
| 6296 | # Return the given path encoded in the file system encoding, |
| 6297 | # or skip the test if this is not possible. |
| 6298 | try: |
| 6299 | return os.fsencode(path) |
| 6300 | except UnicodeEncodeError: |
| 6301 | self.skipTest( |
| 6302 | "Pathname {0!a} cannot be represented in file " |
| 6303 | "system encoding {1!r}".format( |
| 6304 | path, sys.getfilesystemencoding())) |
| 6305 | |
| 6306 | def bind(self, sock, path): |
| 6307 | # Bind the socket |
no test coverage detected