summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2016-01-29 12:23:23 +0100
committerJan Pokorný <jpokorny@redhat.com>2016-02-01 23:54:20 +0100
commit02551b5c881a1551caa597358ad1c709818a456b (patch)
tree69571a70d771110aafbecc06edb63a48e4a3e14d
parent3767f27abf3899a15b9839abe13b1502dfc470ce (diff)
downloadclufter-02551b5c881a1551caa597358ad1c709818a456b.tar.gz
clufter-02551b5c881a1551caa597358ad1c709818a456b.tar.xz
clufter-02551b5c881a1551caa597358ad1c709818a456b.zip
tests/format: get rid of unreachable code
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--tests/format.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/format.py b/tests/format.py
index 7024ece..35af642 100644
--- a/tests/format.py
+++ b/tests/format.py
@@ -1,5 +1,5 @@
# -*- coding: UTF-8 -*-
-# Copyright 2014 Red Hat, Inc.
+# Copyright 2016 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Testing format"""
@@ -65,11 +65,12 @@ class XMLValidationTestCase(TestCase):
coro_input_fail = join(dirname(__file__), 'coro_fail.xml')
def testRngImplicitValidationOk(self):
+ ok = True
try:
et = coroxml_needle('file', self.coro_input_ok)('etree')
except Exception:
- raise
- self.assertTrue(False)
+ ok = False
+ self.assertTrue(ok)
def testRngImplicitValidationFail(self):
try: