Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
  • Loading branch information
jaraco committed Sep 12, 2024
commit 92f9a53dc051a58239787a535d3c1e5ad4c91143
4 changes: 2 additions & 2 deletions Lib/test/test_importlib/resources/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def test_useless_loader(self):
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': '',
Expand All @@ -160,7 +160,7 @@ def test_useless_loader(self):
},
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)),
Expand Down