mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fixed a bug in test_intl.py: teardown didn't get called if the test was skipped
This commit is contained in:
@@ -25,6 +25,11 @@ def setup_module():
|
||||
test_root / 'xx' / 'LC_MESSAGES' / '%s.mo' % catalog],
|
||||
stdout=PIPE, stderr=PIPE)
|
||||
except OSError:
|
||||
# The test will fail the second time it's run if we don't
|
||||
# tear down here. Not sure if there's a more idiomatic way
|
||||
# of ensuring that teardown gets run in the event of an
|
||||
# exception from the setup function.
|
||||
teardown_module()
|
||||
raise SkipTest # most likely msgfmt was not found
|
||||
else:
|
||||
stdout, stderr = p.communicate()
|
||||
|
||||
Reference in New Issue
Block a user