MCPcopy Index your code
hub / github.com/RustPython/RustPython / testSetBlocking_overflow

Method testSetBlocking_overflow

Lib/test/test_socket.py:5340–5350  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

skipTestMethod · 0.80
assertIsNoneMethod · 0.80
setblockingMethod · 0.45
assertEqualMethod · 0.45
gettimeoutMethod · 0.45

Tested by

no test coverage detected