From f0ba05c9cc9fb10ea728f9ebcb9048659368462c Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Tue, 12 Sep 2023 11:52:14 -0400 Subject: [PATCH] rollback the test error with python 3.10 --- tests/test_endpoints.py | 4 ++-- tests/test_validate_code.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_endpoints.py b/tests/test_endpoints.py index 9936df52f..cbb1eb08c 100644 --- a/tests/test_endpoints.py +++ b/tests/test_endpoints.py @@ -267,7 +267,7 @@ def square(x) assert response3.status_code == 200 assert response3.json() == { "imports": {"errors": []}, - "function": {"errors": ["invalid syntax (, line 4)"]}, + "function": {"errors": ["expected ':' (, 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 (, line 4)"]}, + "function": {"errors": ["expected ':' (, line 4)"]}, } diff --git a/tests/test_validate_code.py b/tests/test_validate_code.py index 87ff6b7e4..cacf3669c 100644 --- a/tests/test_validate_code.py +++ b/tests/test_validate_code.py @@ -44,7 +44,7 @@ def square(x) errors3 = validate_code(code3) assert errors3 == { "imports": {"errors": []}, - "function": {"errors": ["invalid syntax (, line 4)"]}, + "function": {"errors": ["expected ':' (, line 4)"]}, }