Skip to content
Prev Previous commit
Next Next commit
Remove todo comment of resolved issue
  • Loading branch information
moreal committed Aug 12, 2022
commit c7689c97cbf168e361edb40c803fb60bc3306a77
3 changes: 1 addition & 2 deletions extra_tests/snippets/syntax_non_utf8.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@

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):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
with assert_raises(error):
with assert_raises(ValueError):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I applied your suggestion in 7e88c8f. Thank you! 🙏🏻

with open(os.path.join(dir_path , "non_utf8.txt")) as f:
eval(f.read())