(tmp_path)
| 509 | |
| 510 | |
| 511 | def test_hazmat(tmp_path): |
| 512 | ret = run_language( |
| 513 | tmp_path, unsupported, |
| 514 | f'pre-commit hazmat ignore-exit-code {shlex.quote(sys.executable)} ' |
| 515 | f"-c 'import sys; raise SystemExit(sys.argv[1:])'", |
| 516 | ('f1', 'f2'), |
| 517 | ) |
| 518 | expected = b"['f1', 'f2']\n" |
| 519 | assert ret == (0, expected) |
nothing calls this directly
no test coverage detected