diff options
Diffstat (limited to 'Lib/unittest/runner.py')
-rw-r--r-- | Lib/unittest/runner.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py index 5fe7d67..8065642 100644 --- a/Lib/unittest/runner.py +++ b/Lib/unittest/runner.py @@ -4,6 +4,7 @@ import sys import time from . import result +from .signals import registerResult __unittest = True @@ -138,6 +139,7 @@ class TextTestRunner(object): def run(self, test): "Run the given test case or test suite." result = self._makeResult() + registerResult(result) result.failfast = self.failfast startTime = time.time() startTestRun = getattr(result, 'startTestRun', None) |