diff --git a/importlib_resources/tests/test_functional.py b/importlib_resources/tests/test_functional.py index 69706cf..255bd13 100644 --- a/importlib_resources/tests/test_functional.py +++ b/importlib_resources/tests/test_functional.py @@ -82,7 +82,7 @@ def test_read_text(self): 'utf-16.file', errors='backslashreplace', ), - 'Hello, UTF-16 world!\n'.encode('utf-16').decode( + '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le').decode( errors='backslashreplace', ), ) @@ -130,7 +130,7 @@ def test_open_text(self): ) as f: self.assertEqual( f.read(), - 'Hello, UTF-16 world!\n'.encode('utf-16').decode( + '\ufeffHello, UTF-16 world!\n'.encode('utf-16-le').decode( errors='backslashreplace', ), )