Skip to content

Commit 1a4f33a

Browse files
committed
fix: handle more edge cases
1 parent dc8b6b5 commit 1a4f33a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

run_tests.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,4 +258,7 @@ def test_flake8(tmpdir):
258258
(file_path, lines) = write_python_file(tmpdir, 'from sys import pid, path')
259259

260260
sys.argv = sys.argv[:2]
261-
assert isinstance(cli.main(), int)
261+
try:
262+
assert isinstance(cli.main(), int)
263+
except SystemExit:
264+
pass

0 commit comments

Comments
 (0)