1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Don't convert pofile to UTF-8 in test
Author: Dave Vasilevsky <dave@vasilevsky.ca>
Forwarded: https://github.com/izimobil/polib/pull/168
Last-Updated: 2025-03-28
--- i/tests/tests.py
+++ w/tests/tests.py
@@ -643,7 +643,7 @@ class TestPoFile(unittest.TestCase):
os.close(fd)
po = polib.pofile(reffile, autodetect_encoding=False, encoding=encoding)
po.save_as_mofile(tmpfile1)
- subprocess.call([msgfmt, '--no-hash', '-o', tmpfile2, reffile])
+ subprocess.call([msgfmt, '--no-hash', '--no-convert', '-o', tmpfile2, reffile])
try:
f = open(tmpfile1, 'rb')
s1 = f.read()
|