https://bugzilla.redhat.com/show_bug.cgi?id=1626861
Matěj Cepl <mcepl(a)cepl.eu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mcepl(a)cepl.eu
--- Comment #2 from Matěj Cepl <mcepl(a)cepl.eu> ---
Except that test is actually skipped:
def test_save_as_mofile(self):
"""
Test for the POFile.save_as_mofile() method.
"""
import distutils.spawn
msgfmt = distutils.spawn.find_executable('msgfmt')
if msgfmt is None:
try:
return unittest.skip('msgfmt is not installed')
except AttributeError:
return
reffiles = ['tests/test_utf8.po',
'tests/test_iso-8859-15.po']
encodings = ['utf-8', 'iso-8859-15']
for reffile, encoding in zip(reffiles, encodings):
fd, tmpfile1 = tempfile.mkstemp()
os.close(fd)
fd, tmpfile2 = tempfile.mkstemp()
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])
try:
f = open(tmpfile1, 'rb')
s1 = f.read()
f.close()
f = open(tmpfile2, 'rb')
s2 = f.read()
f.close()
self.assertEqual(s1, s2)
finally:
os.remove(tmpfile1)
os.remove(tmpfile2)
If you don't have installed a package containing /usr/bin/msgfmt (in
OpenSUSE it is gettext-runtime, in Fedora/RHEL I guess just gettext),
this test is skipped.
--
You are receiving this mail because:
You are on the CC list for the bug.