update unittest

This commit is contained in:
lidanyang 2024-01-15 10:50:08 +08:00
parent 3fded9b6e0
commit 932a26cbb3

View file

@ -96,4 +96,4 @@ async def test_run_with_timeout():
code = "import time; time.sleep(2)"
message, success = await pi.run(code)
assert not success
assert message == "TimeoutError"
assert message.startswith("Cell execution timed out")