mirror of
https://github.com/python/cpython.git
synced 2025-11-21 19:24:44 +00:00
gh-116609: Ignore UTF-16 BOM in importlib.resources._functional tests To test the `errors` argument, we read a UTF-16 file as UTF-8 with "backslashreplace" error handling. However, the utf-16 codec adds an endian-specific byte-order mark, so on big-endian machines the expectation doesn't match the test file (which was saved on a little-endian machine). Use endswith to ignore the BOM. |
||
|---|---|---|
| .. | ||
| data01 | ||
| data02 | ||
| data03 | ||
| namespacedata01 | ||
| zipdata01 | ||
| zipdata02 | ||
| __init__.py | ||
| _path.py | ||
| test_compatibilty_files.py | ||
| test_contents.py | ||
| test_custom.py | ||
| test_files.py | ||
| test_functional.py | ||
| test_open.py | ||
| test_path.py | ||
| test_read.py | ||
| test_reader.py | ||
| test_resource.py | ||
| update-zips.py | ||
| util.py | ||