MCPcopy Index your code
hub / github.com/python/cpython / _test_long_aspid

Method _test_long_aspid

Lib/test/test_capi/test_long.py:329–335  ·  view source on GitHub ↗
(self, aspid)

Source from the content-addressed store, hash-verified

327 # CRASHES asvoidptr(NULL)
328
329 def _test_long_aspid(self, aspid):
330 # Test PyLong_AsPid()
331 from _testcapi import SIZEOF_PID_T
332 bits = 8 * SIZEOF_PID_T
333 PID_T_MIN = -2**(bits-1)
334 PID_T_MAX = 2**(bits-1) - 1
335 self.check_long_asint(aspid, PID_T_MIN, PID_T_MAX)
336
337 def test_long_aspid(self):
338 self._test_long_aspid(_testcapi.pylong_aspid)

Callers 2

test_long_aspidMethod · 0.95

Calls 1

check_long_asintMethod · 0.95

Tested by

no test coverage detected