mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Lint with flake8-bugbear
(#10602)
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ def test_msgfmt(app):
|
||||
except CalledProcessError as exc:
|
||||
print(exc.stdout)
|
||||
print(exc.stderr)
|
||||
assert False, 'msginit exited with return code %s' % exc.returncode
|
||||
raise AssertionError('msginit exited with return code %s' % exc.returncode)
|
||||
|
||||
assert (app.outdir / 'en_US.po').isfile(), 'msginit failed'
|
||||
try:
|
||||
@@ -72,7 +72,7 @@ def test_msgfmt(app):
|
||||
except CalledProcessError as exc:
|
||||
print(exc.stdout)
|
||||
print(exc.stderr)
|
||||
assert False, 'msgfmt exited with return code %s' % exc.returncode
|
||||
raise AssertionError('msgfmt exited with return code %s' % exc.returncode)
|
||||
|
||||
mo = app.outdir / 'en' / 'LC_MESSAGES' / 'test_root.mo'
|
||||
assert mo.isfile(), 'msgfmt failed'
|
||||
|
Reference in New Issue
Block a user