|
|
@@ -55,7 +55,7 @@ def test_simple_cmd_ipython_and_fileop(temp_dir, box_class, run_as_openhands):
|
|
|
assert obs.content.strip() == (
|
|
|
'Hello, `World`!\n'
|
|
|
f'[Jupyter current working directory: {sandbox_dir}]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
)
|
|
|
|
|
|
# Test read file (file should not exist)
|
|
|
@@ -132,7 +132,7 @@ def test_ipython_multi_user(temp_dir, box_class, run_as_openhands):
|
|
|
== (
|
|
|
'/workspace\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -148,7 +148,7 @@ def test_ipython_multi_user(temp_dir, box_class, run_as_openhands):
|
|
|
== (
|
|
|
'[Code executed successfully with no output]\n'
|
|
|
'[Jupyter current working directory: /workspace]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -192,7 +192,7 @@ def test_ipython_simple(temp_dir, box_class):
|
|
|
== (
|
|
|
'1\n'
|
|
|
f'[Jupyter current working directory: {sandbox_dir}]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip()
|
|
|
)
|
|
|
|
|
|
@@ -229,7 +229,7 @@ def _test_ipython_agentskills_fileop_pwd_impl(
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
f'[Jupyter current working directory: {sandbox_dir}]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
action = CmdRunAction(command='cd test')
|
|
|
@@ -253,7 +253,7 @@ def _test_ipython_agentskills_fileop_pwd_impl(
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
f'[Jupyter current working directory: {sandbox_dir}/test]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
if enable_auto_lint:
|
|
|
@@ -287,7 +287,7 @@ Your changes have NOT been applied. Please fix your edit command and try again.
|
|
|
You either need to 1) Specify the correct start/end line arguments or 2) Correct your edit code.
|
|
|
DO NOT re-run the same failed edit command. Running it again will lead to the same error.
|
|
|
[Jupyter current working directory: {sandbox_dir}/test]
|
|
|
-[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]
|
|
|
+[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]
|
|
|
"""
|
|
|
).strip().split('\n')
|
|
|
|
|
|
@@ -307,7 +307,7 @@ DO NOT re-run the same failed edit command. Running it again will lead to the sa
|
|
|
(this is the end of the file)
|
|
|
[File updated (edited at line 1). Please review the changes and make sure they are correct (correct indentation, no duplicate lines, etc). Edit the file again if necessary.]
|
|
|
[Jupyter current working directory: {sandbox_dir}/test]
|
|
|
-[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]
|
|
|
+[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]
|
|
|
"""
|
|
|
).strip().split('\n')
|
|
|
|
|
|
@@ -378,7 +378,7 @@ def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /root]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
action = CmdRunAction(command='cd test')
|
|
|
@@ -402,7 +402,7 @@ def test_ipython_agentskills_fileop_pwd_with_userdir(temp_dir, box_class):
|
|
|
'(this is the end of the file)\n'
|
|
|
'[File hello.py created.]\n'
|
|
|
'[Jupyter current working directory: /root/test]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
).strip().split('\n')
|
|
|
|
|
|
_close_test_runtime(runtime)
|
|
|
@@ -438,7 +438,7 @@ def test_ipython_package_install(temp_dir, box_class, run_as_openhands):
|
|
|
assert obs.content.strip() == (
|
|
|
'[Code executed successfully with no output]\n'
|
|
|
f'[Jupyter current working directory: {sandbox_dir}]\n'
|
|
|
- '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.11/bin/python]'
|
|
|
+ '[Jupyter Python interpreter: /openhands/poetry/openhands-ai-5O4_aCHf-py3.12/bin/python]'
|
|
|
)
|
|
|
|
|
|
_close_test_runtime(runtime)
|