(self)
| 6996 | # non blocking sockets are not supposed to work |
| 6997 | |
| 6998 | def _testNonBlocking(self): |
| 6999 | address = self.serv.getsockname() |
| 7000 | file = open(os_helper.TESTFN, 'rb') |
| 7001 | with socket.create_connection(address) as sock, file as file: |
| 7002 | sock.setblocking(False) |
| 7003 | meth = self.meth_from_sock(sock) |
| 7004 | self.assertRaises(ValueError, meth, file) |
| 7005 | self.assertRaises(ValueError, sock.sendfile, file) |
| 7006 | |
| 7007 | def testNonBlocking(self): |
| 7008 | conn = self.accept_conn() |
nothing calls this directly
no test coverage detected