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

Method test_trashcan_subclass

Lib/test/test_capi/test_misc.py:407–413  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

405 _testcapi.test_buildvalue_N()
406
407 def test_trashcan_subclass(self):
408 # bpo-35983: Check that the trashcan mechanism for "list" is NOT
409 # activated when its tp_dealloc is being called by a subclass
410 from _testcapi import MyList
411 L = None
412 for i in range(100):
413 L = MyList((L,))
414
415 @support.requires_resource('cpu')
416 @support.skip_emscripten_stack_overflow()

Callers

nothing calls this directly

Calls 1

MyListClass · 0.50

Tested by

no test coverage detected