From 53dd818e9674c0898eab29eb5dda4f3578eb4bfb Mon Sep 17 00:00:00 2001 From: Mathias Baumann Date: Mon, 17 Aug 2020 17:06:06 +0200 Subject: [PATCH] Ignore UTF errors when handling test files in python --- scripts/isolate_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/isolate_tests.py b/scripts/isolate_tests.py index 0f2bc1d79..16648b26b 100755 --- a/scripts/isolate_tests.py +++ b/scripts/isolate_tests.py @@ -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