MCPcopy Create free account
hub / github.com/python/mypy / test_inc_ref_none

Method test_inc_ref_none

mypyc/test/test_emitfunc.py:934–936  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

932 )
933
934 def test_inc_ref_none(self) -> None:
935 b = Box(self.none)
936 self.assert_emit([b, IncRef(b)], "" if HAVE_IMMORTAL else "CPy_INCREF(cpy_r_r0);")
937
938 def test_inc_ref_bool(self) -> None:
939 b = Box(self.b)

Callers

nothing calls this directly

Calls 3

assert_emitMethod · 0.95
BoxClass · 0.90
IncRefClass · 0.90

Tested by

no test coverage detected