summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/runner.py
diff options
context:
space:
mode:
authorMichael Foord <fuzzyman@voidspace.org.uk>2010-03-27 13:25:41 (GMT)
committerMichael Foord <fuzzyman@voidspace.org.uk>2010-03-27 13:25:41 (GMT)
commit65b69a1093921c61cca263c07027794e5ee7e667 (patch)
treea98451f4668729530a7695485b030d713d705915 /Lib/unittest/runner.py
parent8777f01d71d1718dd4150490c0847cfce20f51a5 (diff)
downloadcpython-65b69a1093921c61cca263c07027794e5ee7e667.zip
cpython-65b69a1093921c61cca263c07027794e5ee7e667.tar.gz
cpython-65b69a1093921c61cca263c07027794e5ee7e667.tar.bz2
Merged revisions 79437 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79437 | michael.foord | 2010-03-26 03:18:31 +0000 (Fri, 26 Mar 2010) | 1 line Addition of -c command line option to unittest, to handle ctrl-c during a test run more elegantly ........
Diffstat (limited to 'Lib/unittest/runner.py')
-rw-r--r--Lib/unittest/runner.py2
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)