(self, aspid)
| 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) |
no test coverage detected