Override the connect method and assign a unix socket as a transport.
(self)
| 35 | return self |
| 36 | |
| 37 | def connect(self): |
| 38 | """ |
| 39 | Override the connect method and assign a unix socket as a transport. |
| 40 | """ |
| 41 | sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) |
| 42 | sock.connect(self.path) |
| 43 | self.sock = sock |
| 44 | atexit.register(lambda: os.remove(self.path)) |
| 45 | |
| 46 | |
| 47 | @pytest.mark.skipif("sys.platform == 'win32'") |
no test coverage detected