Ensure PO files are opened as UTF-8 in test_gtranslator()

This commit is contained in:
Chris Mayo 2020-06-09 19:47:24 +01:00
parent 9108afeee5
commit 18d6eeae76

View file

@ -58,7 +58,7 @@ class TestGTranslator(unittest.TestCase):
def test_gtranslator(self):
"""Test all pofiles for GTranslator brokenness."""
for f in get_pofiles():
with open(f) as fd:
with open(f, encoding="UTF-8") as fd:
self.check_file(fd, f)
def check_file(self, fd, f):