This commit is contained in:
shimizukawa 2017-01-13 00:24:10 +09:00
parent 7d8a37f506
commit a11218151f

View File

@ -51,7 +51,7 @@ def test_catalog_outdated(tempdir):
def test_catalog_write_mo(tempdir): def test_catalog_write_mo(tempdir):
(tempdir / 'test.po').write_text('#') (tempdir / 'test.po').write_text('#')
cat = i18n.CatalogInfo(tempdir, 'test', 'utf-8') cat = i18n.CatalogInfo(tempdir, 'test', 'utf-8')
cat.write_mo('en', lambda *a, *kw: None) cat.write_mo('en', lambda *a, **kw: None)
assert os.path.exists(cat.mo_path) assert os.path.exists(cat.mo_path)
with open(cat.mo_path, 'rb') as f: with open(cat.mo_path, 'rb') as f:
assert read_mo(f) is not None assert read_mo(f) is not None