aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_reader_nonUTF8.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_reader_nonUTF8.py')
-rw-r--r--test/test_reader_nonUTF8.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/test_reader_nonUTF8.py b/test/test_reader_nonUTF8.py
index 12d38f6..6f2419a 100644
--- a/test/test_reader_nonUTF8.py
+++ b/test/test_reader_nonUTF8.py
@@ -6,16 +6,18 @@ import unittest
test_data_list = [{
"name": 'Non UTF8 test',
- "in": ['--- \xbd\xd0\xe1 \xd1\xeb\xdb\xde \xdc\xdd\xde\xd3\xde' +
- '\xdd\xd0 \xe7\xd5\xdb\xdd\xd5;\n', '...', ],
- "out": "Нас было много на челне;",
+ "in": [b"--- macro `BR\xc3\xc2\xa0fbi' not defined",
+ '...', ],
+ "out": "macro `BR\xa0fbi' not defined",
}]
+""
class TestReader(unittest.TestCase): # IGNORE:C0111
pass
-test.generate_testsuite(test_data_list, TestReader, yamlish.load)
+test.generate_testsuite(test_data_list, TestReader, yamlish.load,
+ options={'ignore_wrong_characters': True})
if __name__ == "__main__":
unittest.main()