MCPcopy Index your code
hub / github.com/RustPython/RustPython / error

Method error

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

Source from the content-addressed store, hash-verified

2230 @classmethod
2231 def run_in_child(cls):
2232 def error():
2233 # Create an atexit finalizer from inside a finalizer called
2234 # at exit. This should be the next to be run.
2235 g1 = weakref.finalize(cls, print, 'g1')
2236 print('f3 error')
2237 1/0
2238
2239 # cls should stay alive till atexit callbacks run
2240 f1 = weakref.finalize(cls, print, 'f1', _global_var)

Callers

nothing calls this directly

Calls 2

printFunction · 0.50
finalizeMethod · 0.45

Tested by

no test coverage detected