MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / test_reentrance

Function test_reentrance

tests/python/test_reentrance_smoke.py:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11
12def test_reentrance():
13 globalThis = pm.eval("globalThis;")
14 globalThis.pmEval = pm.eval
15 globalThis.pyEval = eval
16
17 abc = (pm.eval("() => { return {def: pyEval('123')} };"))()
18 assert (abc['def'] == 123)
19 print(pm.eval("pmEval(`pyEval(\"'test passed'\")`)"))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected