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