mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Merged revisions 79270 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79270 | michael.foord | 2010-03-21 20:56:54 -0500 (Sun, 21 Mar 2010) | 1 line expected failure should not trigger failfast behavior in unittest. ........
This commit is contained in:
parent
e3a1f6d3b7
commit
f8197c3489
3 changed files with 1 additions and 8 deletions
|
|
@ -2125,12 +2125,6 @@ class Test_TestResult(TestCase):
|
|||
result.addUnexpectedSuccess(None)
|
||||
self.assertTrue(result.shouldStop)
|
||||
|
||||
result = unittest.TestResult()
|
||||
result._exc_info_to_string = lambda *_: ''
|
||||
result.failfast = True
|
||||
result.addExpectedFailure(None, None)
|
||||
self.assertTrue(result.shouldStop)
|
||||
|
||||
def testFailFastSetByRunner(self):
|
||||
runner = unittest.TextTestRunner(stream=io.StringIO(), failfast=True)
|
||||
def test(result):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue