(self)
| 6112 | self.assertIs(socket.timeout, TimeoutError) |
| 6113 | |
| 6114 | def test_setblocking_invalidfd(self): |
| 6115 | # Regression test for issue #28471 |
| 6116 | |
| 6117 | sock0 = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) |
| 6118 | sock = socket.socket( |
| 6119 | socket.AF_INET, socket.SOCK_STREAM, 0, sock0.fileno()) |
| 6120 | sock0.close() |
| 6121 | self.addCleanup(sock.detach) |
| 6122 | |
| 6123 | with self.assertRaises(OSError): |
| 6124 | sock.setblocking(False) |
| 6125 | |
| 6126 | |
| 6127 | @unittest.skipUnless(sys.platform in ('linux', 'android'), 'Linux specific test') |
nothing calls this directly
no test coverage detected