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

Method func

Lib/test/test_capi/test_object.py:247–250  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

245 self.assertFalse(_testcapi.pyobject_is_unique_temporary(obj))
246
247 def func(x):
248 # This relies on the LOAD_FAST_BORROW optimization (gh-130704)
249 self.assertEqual(sys.getrefcount(x), 1)
250 self.assertFalse(_testcapi.pyobject_is_unique_temporary(x))
251
252 func(object())
253

Callers 2

evalMethod · 0.45
__call__Method · 0.45

Calls 2

assertFalseMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected