summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Lehmann <mail@robertlehmann.de>2010-11-13 13:14:35 +0100
committerRobert Lehmann <mail@robertlehmann.de>2010-11-13 13:14:35 +0100
commit6ced26ad8b978c9dfe8d59538c476f5eebdce0cf (patch)
tree07827a854013917deca686849108e32f6621b1d5
parent0a873755de39d5d23dda46724dace2d55a6f1d14 (diff)
downloadsphinx-6ced26ad8b978c9dfe8d59538c476f5eebdce0cf.tar.gz
Transform false positives into skipped tests.
-rw-r--r--tests/test_build_gettext.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py
index 2004958b..be35c569 100644
--- a/tests/test_build_gettext.py
+++ b/tests/test_build_gettext.py
@@ -14,6 +14,7 @@ import os
from subprocess import Popen, PIPE
from util import *
+from util import SkipTest
def teardown_module():
@@ -41,7 +42,7 @@ def test_gettext(app):
'--locale', 'en_US'],
stdout=PIPE, stderr=PIPE)
except OSError:
- return # most likely msginit was not found
+ raise SkipTest # most likely msginit was not found
else:
stdout, stderr = p.communicate()
if p.returncode != 0:
@@ -55,7 +56,7 @@ def test_gettext(app):
os.path.join('en', 'LC_MESSAGES', 'test_root.mo')],
stdout=PIPE, stderr=PIPE)
except OSError:
- return # most likely msgfmt was not found
+ raise SkipTest # most likely msgfmt was not found
else:
stdout, stderr = p.communicate()
if p.returncode != 0:
@@ -86,7 +87,7 @@ def setup_patch():
test_root / 'xx' / 'LC_MESSAGES' / 'subdir.mo'],
stdout=PIPE, stderr=PIPE)
except OSError:
- return # most likely msgfmt was not found
+ raise SkipTest # most likely msgfmt was not found
else:
stdout, stderr = p.communicate()
if p.returncode != 0: