mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix nits
This commit is contained in:
parent
7d8a37f506
commit
a11218151f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user