Skip to content

Commit 61827d2

Browse files
committed
hot fix
1 parent 1d7d4e4 commit 61827d2

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/interpreters/test_subprocess_interpreter.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,11 @@ def test_bash_stderr(subprocess_interpreter):
7878

7979

8080
def test_run_file_not_found(subprocess_interpreter):
81-
with pytest.raises(RuntimeError) as exc_info:
82-
subprocess_interpreter.run_file(
83-
Path("/path/to/nonexistent/file"),
84-
"python",
85-
)
86-
assert "/path/to/nonexistent/file is not a file." in str(exc_info.value)
81+
result = subprocess_interpreter.run_file(
82+
Path("/path/to/nonexistent/file"),
83+
"python",
84+
)
85+
assert "/path/to/nonexistent/file is not a file." in result
8786

8887

8988
def test_run_unsupported_code_type(subprocess_interpreter):

0 commit comments

Comments
 (0)