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

Method test_long_asint32

Lib/test/test_capi/test_long.py:691–695  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

689 # CRASHES iszero(NULL)
690
691 def test_long_asint32(self):
692 # Test PyLong_AsInt32() and PyLong_FromInt32()
693 to_int32 = _testlimitedcapi.pylong_asint32
694 from _testcapi import INT32_MIN, INT32_MAX
695 self.check_long_asint(to_int32, INT32_MIN, INT32_MAX)
696
697 def test_long_asint64(self):
698 # Test PyLong_AsInt64() and PyLong_FromInt64()

Callers

nothing calls this directly

Calls 1

check_long_asintMethod · 0.95

Tested by

no test coverage detected