comparison tests/run-tests.py @ 32933:f83b7376a300

tests: remove unused IgnoreTest exception AFAICT its last use was removed in d839e4820da7.
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 03 Jun 2017 17:09:13 -0700
parents 240183a04429
children 6123a5267119
comparison
equal deleted inserted replaced
32932:240183a04429 32933:f83b7376a300
715 result.addSkip(self, str(e)) 715 result.addSkip(self, str(e))
716 # The base class will have already counted this as a 716 # The base class will have already counted this as a
717 # test we "ran", but we want to exclude skipped tests 717 # test we "ran", but we want to exclude skipped tests
718 # from those we count towards those run. 718 # from those we count towards those run.
719 result.testsRun -= 1 719 result.testsRun -= 1
720 except IgnoreTest as e:
721 result.addIgnore(self, str(e))
722 # As with skips, ignores also should be excluded from
723 # the number of tests executed.
724 result.testsRun -= 1
725 except WarnTest as e: 720 except WarnTest as e:
726 result.addWarn(self, str(e)) 721 result.addWarn(self, str(e))
727 except ReportedTest as e: 722 except ReportedTest as e:
728 pass 723 pass
729 except self.failureException as e: 724 except self.failureException as e:
1484 def _stringescape(s): 1479 def _stringescape(s):
1485 return TTest.ESCAPESUB(TTest._escapef, s) 1480 return TTest.ESCAPESUB(TTest._escapef, s)
1486 1481
1487 iolock = threading.RLock() 1482 iolock = threading.RLock()
1488 1483
1489 class IgnoreTest(Exception):
1490 """Raised to indicate that a test is to be ignored."""
1491
1492 class WarnTest(Exception): 1484 class WarnTest(Exception):
1493 """Raised to indicate that a test warned.""" 1485 """Raised to indicate that a test warned."""
1494 1486
1495 class ReportedTest(Exception): 1487 class ReportedTest(Exception):
1496 """Raised to indicate that a test already reported.""" 1488 """Raised to indicate that a test already reported."""