Merge pull request #9634 from ethereum/fix-python-utf

[Trivial] Ignore UTF errors when handling test files in python
This commit is contained in:
chriseth
2020-08-17 17:12:41 +02:00
committed by GitHub
+1 -1
View File
@@ -43,7 +43,7 @@ def extract_docs_cases(path):
tests = []
# Collect all snippets of indented blocks
for l in open(path, mode='r', encoding='utf8').read().splitlines():
for l in open(path, mode='r', errors='ignore', encoding='utf8').read().splitlines():
if l != '':
if not inside and l.startswith(' '):
# start new test