Use source_to_unicode by default with errors='strict'.

This commit is contained in:
Dave Halter committed 2017-08-15 19:27:27 +02:00
1 parent a305a911f1
commit 86aa185136
3 files changed
+19 -5

No files matched your search

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