(self)
| 75 | |
| 76 | class 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: |
no test coverage detected