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

Method _print_panic

wasm/tests/conftest.py:77–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75
76class Driver(webdriver.Firefox):
77 def _print_panic(self):
78 stack = self.execute_script(
79 "return (window.__RUSTPYTHON_ERROR_MSG || '') + '\\n' + (window.__RUSTPYTHON_ERROR_STACK || '')"
80 )
81 if stack.strip():
82 print(f"RustPython panic stack:", stack, file=sys.stderr, sep="\n")
83
84 def execute_script(self, *args, **kwargs):
85 try:

Callers 2

execute_scriptMethod · 0.95
wdriverFunction · 0.95

Calls 3

execute_scriptMethod · 0.95
printFunction · 0.50
stripMethod · 0.45

Tested by

no test coverage detected