MCPcopy Create free account
hub / github.com/celery/celery / inner_function

Method inner_function

t/unit/app/test_trace.py:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 try:
21 # Create a nested call stack to have frames to clear
22 def inner_function():
23 x = "some_local_variable" * 1000 # Create local variable # noqa: F841
24 y = list(range(1000)) # Another local variable # noqa: F841
25 raise ValueError("Test exception with traceback")
26
27 def outer_function():
28 z = "outer_local_variable" * 1000 # Local variable in outer frame # noqa: F841

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected