Skip to content

Commit a080729

Browse files
committed
Fix incorrect MO file bytes in content type test
1 parent 5cd3c9f commit a080729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_gettext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ def test_raise_descriptive_error_for_incorrect_content_type(self):
672672
# "Content-Type: text/plain; charste=UTF-8\n"
673673
fp.write(
674674
b'\xde\x12\x04\x95\x00\x00\x00\x00\x01\x00\x00\x00\x1c\x00\x00\x00$\x00\x00\x00\x03\x00\x00\x00,\x00'
675-
b'\x00\x00\x00\x00\x00\x008\x00\x00\x007\x00\x00\x009\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00'
675+
b'\x00\x00\x00\x00\x00\x008\x00\x00\x00(\x00\x00\x009\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00'
676676
b'\x00\x00\x00\x00Content-Type: text/plain; charste=UTF-8\n\x00'
677677
)
678678
with self.assertRaisesRegex(ValueError, "invalid content-type syntax"):

0 commit comments

Comments
 (0)