(self)
| 6893 | # non blocking sockets are not supposed to work |
| 6894 | |
| 6895 | def _testNonBlocking(self): |
| 6896 | address = self.serv.getsockname() |
| 6897 | file = open(os_helper.TESTFN, 'rb') |
| 6898 | with socket.create_connection(address) as sock, file as file: |
| 6899 | sock.setblocking(False) |
| 6900 | meth = self.meth_from_sock(sock) |
| 6901 | self.assertRaises(ValueError, meth, file) |
| 6902 | self.assertRaises(ValueError, sock.sendfile, file) |
| 6903 | |
| 6904 | def testNonBlocking(self): |
| 6905 | conn = self.accept_conn() |
nothing calls this directly
no test coverage detected