mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-07 21:34:32 +08:00
Use source_to_unicode by default with errors='strict'.
This commit is contained in:
8
test/test_grammar.py
Normal file
8
test/test_grammar.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import parso
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
def test_non_unicode():
|
||||
with pytest.raises(UnicodeDecodeError):
|
||||
parso.parse(b'\xe4')
|
||||
Reference in New Issue
Block a user