Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

hot fix

Wendong61827d2a94f9
diff --git a/test/interpreters/test_subprocess_interpreter.py b/test/interpreters/test_subprocess_interpreter.py
index c5cd24025..db759cf44 100644
--- a/test/interpreters/test_subprocess_interpreter.py
+++ b/test/interpreters/test_subprocess_interpreter.py
@@ -78,12 +78,11 @@ echo $(undefined_command)
def test_run_file_not_found(subprocess_interpreter):
- with pytest.raises(RuntimeError) as exc_info:
- subprocess_interpreter.run_file(
- Path("/path/to/nonexistent/file"),
- "python",
- )
- 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
def test_run_unsupported_code_type(subprocess_interpreter):