Skip to content

Commit 4dba325

Browse files
author
Meir Shpilraien (Spielrein)
authored
Make sure exceptions are counted as failures so they will cause printing verbose information (on failure). (#197)
1 parent 39526b2 commit 4dba325

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RLTest/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,8 @@ def _runTest(self, test, numberOfAssertionFailed=0, prefix='', before=None, afte
666666
if passed:
667667
self.printPass(testFullName)
668668

669+
if hasException:
670+
numFailed += 1 # exception should be counted as failure
669671
return numFailed
670672

671673
def printSkip(self, name):

0 commit comments

Comments
 (0)