(self)
| 5338 | @support.cpython_only |
| 5339 | @unittest.skipIf(_testcapi is None, "requires _testcapi") |
| 5340 | def testSetBlocking_overflow(self): |
| 5341 | # Issue 15989 |
| 5342 | import _testcapi |
| 5343 | if _testcapi.UINT_MAX >= _testcapi.ULONG_MAX: |
| 5344 | self.skipTest('needs UINT_MAX < ULONG_MAX') |
| 5345 | |
| 5346 | self.serv.setblocking(False) |
| 5347 | self.assertEqual(self.serv.gettimeout(), 0.0) |
| 5348 | |
| 5349 | self.serv.setblocking(_testcapi.UINT_MAX + 1) |
| 5350 | self.assertIsNone(self.serv.gettimeout()) |
| 5351 | |
| 5352 | _testSetBlocking_overflow = support.cpython_only(_testSetBlocking) |
| 5353 |
nothing calls this directly
no test coverage detected