From c7689c97cbf168e361edb40c803fb60bc3306a77 Mon Sep 17 00:00:00 2001 From: Moreal Date: Sat, 13 Aug 2022 02:26:02 +0900 Subject: [PATCH] Remove todo comment of resolved issue --- extra_tests/snippets/syntax_non_utf8.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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())