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

Method test_long_aslonglong

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

Source from the content-addressed store, hash-verified

246 self.check_long_asint(asunsignedlongmask, 0, ULONG_MAX, mask=True)
247
248 def test_long_aslonglong(self):
249 # Test PyLong_AsLongLong() and PyLong_FromLongLong()
250 aslonglong = _testlimitedcapi.pylong_aslonglong
251 from _testcapi import LLONG_MIN, LLONG_MAX
252 self.check_long_asint(aslonglong, LLONG_MIN, LLONG_MAX)
253
254 def test_long_aslonglongandoverflow(self):
255 # Test PyLong_AsLongLongAndOverflow()

Callers

nothing calls this directly

Calls 1

check_long_asintMethod · 0.95

Tested by

no test coverage detected