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

Method test_long_aslong

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

Source from the content-addressed store, hash-verified

221 self.check_long_asint(PyLong_AsInt, INT_MIN, INT_MAX)
222
223 def test_long_aslong(self):
224 # Test PyLong_AsLong() and PyLong_FromLong()
225 aslong = _testlimitedcapi.pylong_aslong
226 from _testcapi import LONG_MIN, LONG_MAX
227 self.check_long_asint(aslong, LONG_MIN, LONG_MAX)
228
229 def test_long_aslongandoverflow(self):
230 # Test PyLong_AsLongAndOverflow()

Callers

nothing calls this directly

Calls 1

check_long_asintMethod · 0.95

Tested by

no test coverage detected