mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-31 19:33:09 +02:00
14 lines
655 B
Diff
14 lines
655 B
Diff
diff --git a/tests/test_subtitle.py b/tests/test_subtitle.py
|
|
index 217506d..c866d14 100644
|
|
--- a/tests/test_subtitle.py
|
|
+++ b/tests/test_subtitle.py
|
|
@@ -203,7 +203,7 @@ def test_fix_line_ending() -> None:
|
|
|
|
# https://github.com/pannal/Sub-Zero.bundle/issues/646 replaced all Chinese character “不” with “上”
|
|
def test_fix_line_ending_chinese_characters() -> None:
|
|
- character = bytes('不', 'utf16')
|
|
+ character = bytes('不', 'utf-16-le')
|
|
content = b''.join([character, b'\r\n', character, b'\n', character])
|
|
expected = b''.join([character, b'\n', character, b'\n', character])
|
|
assert fix_line_ending(content) == expected
|