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

Method test_long_asint

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

Source from the content-addressed store, hash-verified

215 self.assertRaises(TypeError, func, 1.0)
216
217 def test_long_asint(self):
218 # Test PyLong_AsInt()
219 PyLong_AsInt = _testlimitedcapi.PyLong_AsInt
220 from _testcapi import INT_MIN, INT_MAX
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()

Callers

nothing calls this directly

Calls 1

check_long_asintMethod · 0.95

Tested by

no test coverage detected