Skip to content

Commit f0048eb

Browse files
committed
Only check exit code if no other exception was raised
1 parent b333f28 commit f0048eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bpython/test/test_args.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ def run_with_tty(command):
5353
if p.poll() is None:
5454
p.kill()
5555
p.wait()
56-
if p.returncode:
57-
raise RuntimeError(f"Subprocess exited with {p.returncode}")
56+
57+
if p.returncode:
58+
raise RuntimeError(f"Subprocess exited with {p.returncode}")
5859

5960
return (
6061
result[master_stdout].decode(getpreferredencoding()),

0 commit comments

Comments
 (0)