try to fix run code error.

This commit is contained in:
geekan 2024-02-01 16:38:51 +08:00
parent 9ecdccd836
commit e8c333b45b
2 changed files with 5 additions and 2 deletions

View file

@ -38,7 +38,7 @@ async def test_run_script(context):
@pytest.mark.asyncio
async def test_run(context):
inputs = [
(RunCodeContext(mode="text", code_filename="a.txt", code="print('Hello, World')"), "PASS"),
(RunCodeContext(mode="text", code_filename="a.txt", code="result = 'helloworld'"), "PASS"),
(
RunCodeContext(
mode="script",