From 3d006f827d8234090a015cd092baaae4ac8fc48c Mon Sep 17 00:00:00 2001 From: Robert Lehmann Date: Sat, 13 Nov 2010 13:14:35 +0100 Subject: [PATCH] Transform false positives into skipped tests. --- tests/test_build_gettext.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_build_gettext.py b/tests/test_build_gettext.py index 2004958bc..be35c5695 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: