Use source_to_unicode by default with errors='strict'.

This commit is contained in:
Dave Halter
2017-08-15 19:27:17 +02:00
parent a305a911f1
commit 86aa185136
3 changed files with 19 additions and 5 deletions

8
test/test_grammar.py Normal file
View File

@@ -0,0 +1,8 @@
import parso
import pytest
def test_non_unicode():
with pytest.raises(UnicodeDecodeError):
parso.parse(b'\xe4')