diff --git a/extra_tests/snippets/syntax_non_utf8.py b/extra_tests/snippets/syntax_non_utf8.py index 731b36889..660532ad9 100644 --- a/extra_tests/snippets/syntax_non_utf8.py +++ b/extra_tests/snippets/syntax_non_utf8.py @@ -5,8 +5,7 @@ from testutils import assert_raises dir_path = os.path.dirname(os.path.realpath(__file__)) -# TODO: RUSTPYTHON, RustPython raises a SyntaxError here, but cpython raise a ValueError -error = SyntaxError if platform.python_implementation() == 'RustPython' else ValueError +error = ValueError with assert_raises(error): with open(os.path.join(dir_path , "non_utf8.txt")) as f: eval(f.read())