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

Method error

Lib/test/test_weakref.py:2249–2254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2247 @classmethod
2248 def run_in_child(cls):
2249 def error():
2250 # Create an atexit finalizer from inside a finalizer called
2251 # at exit. This should be the next to be run.
2252 g1 = weakref.finalize(cls, print, 'g1')
2253 print('f3 error')
2254 1/0
2255
2256 # cls should stay alive till atexit callbacks run
2257 f1 = weakref.finalize(cls, print, 'f1', _global_var)

Callers

nothing calls this directly

Calls 1

finalizeMethod · 0.45

Tested by

no test coverage detected