Patchwork [2,of,5] tests: remove unused IgnoreTest exception

login
register
mail settings
Submitter Gregory Szorc
Date June 20, 2017, 6:12 a.m.
Message ID <fbcdbd62401f8578e059.1497939170@ubuntu-vm-main>
Download mbox | patch
Permalink /patch/21522/
State Accepted
Headers show

Comments

Gregory Szorc - June 20, 2017, 6:12 a.m.
# HG changeset patch
# User Gregory Szorc <gregory.szorc@gmail.com>
# Date 1496534953 25200
#      Sat Jun 03 17:09:13 2017 -0700
# Node ID fbcdbd62401f8578e05974b83fe604f89f221c62
# Parent  a486c4a371625bd51bb9ba4b1dee7585167427d3
tests: remove unused IgnoreTest exception

AFAICT its last use was removed in d839e4820da7.

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -717,11 +717,6 @@  class Test(unittest.TestCase):
                 # test we "ran", but we want to exclude skipped tests
                 # from those we count towards those run.
                 result.testsRun -= 1
-            except IgnoreTest as e:
-                result.addIgnore(self, str(e))
-                # As with skips, ignores also should be excluded from
-                # the number of tests executed.
-                result.testsRun -= 1
             except WarnTest as e:
                 result.addWarn(self, str(e))
             except ReportedTest as e:
@@ -1486,9 +1481,6 @@  class TTest(Test):
 
 iolock = threading.RLock()
 
-class IgnoreTest(Exception):
-    """Raised to indicate that a test is to be ignored."""
-
 class WarnTest(Exception):
     """Raised to indicate that a test warned."""