We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d7d4e4 commit 61827d2Copy full SHA for 61827d2
test/interpreters/test_subprocess_interpreter.py
@@ -78,12 +78,11 @@ def test_bash_stderr(subprocess_interpreter):
78
79
80
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)
+ result = subprocess_interpreter.run_file(
+ Path("/path/to/nonexistent/file"),
+ "python",
+ )
+ assert "/path/to/nonexistent/file is not a file." in result
87
88
89
def test_run_unsupported_code_type(subprocess_interpreter):
0 commit comments