Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit d4a210d

Browse files
committed
[Tests] fix for python 3.8+
1 parent f874f72 commit d4a210d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unitTesting/interpreter-test-runfile.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ int main(int argc, char** argv) {
6262
res = testFile("test_python-syntax_error.py",
6363
std::string(" File \"test_python-syntax_error.py\", line 2\n"
6464
" hello world\n"
65+
#if PY_MINOR_VERSION >= 8
66+
" ^\n"
67+
#else
6568
" ^\n"
69+
#endif
6670
"SyntaxError: invalid syntax\n"),
6771
numTest) &&
6872
res;

0 commit comments

Comments
 (0)