diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2024-09-12 14:14:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-12 14:14:46 (GMT) |
commit | 3ea51fa2e33797c772af6eaf6ede76d2dc6082ba (patch) | |
tree | 7cde6f6ed13298e44ada2bec3815cbfb31974856 | |
parent | a362c41bc934fabe6bfef9be1962005b38396860 (diff) | |
download | cpython-3ea51fa2e33797c772af6eaf6ede76d2dc6082ba.zip cpython-3ea51fa2e33797c772af6eaf6ede76d2dc6082ba.tar.gz cpython-3ea51fa2e33797c772af6eaf6ede76d2dc6082ba.tar.bz2 |
gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
-rw-r--r-- | Lib/test/test_importlib/resources/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_importlib/resources/util.py b/Lib/test/test_importlib/resources/util.py index 893dda6..e2d995f 100644 --- a/Lib/test/test_importlib/resources/util.py +++ b/Lib/test/test_importlib/resources/util.py @@ -145,7 +145,7 @@ fixtures = dict( data01={ '__init__.py': '', 'binary.file': bytes(range(4)), - 'utf-16.file': 'Hello, UTF-16 world!\n'.encode('utf-16'), + 'utf-16.file': '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le'), 'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'), 'subdirectory': { '__init__.py': '', @@ -160,7 +160,7 @@ fixtures = dict( }, namespacedata01={ 'binary.file': bytes(range(4)), - 'utf-16.file': 'Hello, UTF-16 world!\n'.encode('utf-16'), + 'utf-16.file': '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le'), 'utf-8.file': 'Hello, UTF-8 world!\n'.encode('utf-8'), 'subdirectory': { 'binary.file': bytes(range(12, 16)), |