rollback the test error with python 3.10

This commit is contained in:
Guangya Liu 2023-09-12 11:52:14 -04:00
commit f0ba05c9cc
2 changed files with 3 additions and 3 deletions

View file

@ -267,7 +267,7 @@ def square(x)
assert response3.status_code == 200
assert response3.json() == {
"imports": {"errors": []},
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
}
# Test case with invalid JSON payload
@ -290,7 +290,7 @@ def square(x)
assert response6.status_code == 200
assert response6.json() == {
"imports": {"errors": []},
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
}

View file

@ -44,7 +44,7 @@ def square(x)
errors3 = validate_code(code3)
assert errors3 == {
"imports": {"errors": []},
"function": {"errors": ["invalid syntax (<unknown>, line 4)"]},
"function": {"errors": ["expected ':' (<unknown>, line 4)"]},
}