diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-19 03:19:47 (GMT) |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2010-12-19 03:19:47 (GMT) |
commit | b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2 (patch) | |
tree | 14e9ae4dcb071ee7bf154026ecac93c3ea352c7a /Lib/unittest/test/test_functiontestcase.py | |
parent | addc6f5a21d5d04c5bf895e8ea46f67de129d75c (diff) | |
download | cpython-b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2.zip cpython-b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2.tar.gz cpython-b3468f79efa45c8adaf86c0b9b797b9b3d4c12a2.tar.bz2 |
Issue 10611. Issue 9857. Improve the way exception handling, including test skipping, is done inside TestCase.run
Diffstat (limited to 'Lib/unittest/test/test_functiontestcase.py')
-rw-r--r-- | Lib/unittest/test/test_functiontestcase.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/unittest/test/test_functiontestcase.py b/Lib/unittest/test/test_functiontestcase.py index ab46785..9ce5ee3 100644 --- a/Lib/unittest/test/test_functiontestcase.py +++ b/Lib/unittest/test/test_functiontestcase.py @@ -58,8 +58,8 @@ class Test_FunctionTestCase(unittest.TestCase): def tearDown(): events.append('tearDown') - expected = ['startTest', 'setUp', 'test', 'addError', 'tearDown', - 'stopTest'] + expected = ['startTest', 'setUp', 'test', 'tearDown', + 'addError', 'stopTest'] unittest.FunctionTestCase(test, setUp, tearDown).run(result) self.assertEqual(events, expected) @@ -84,8 +84,8 @@ class Test_FunctionTestCase(unittest.TestCase): def tearDown(): events.append('tearDown') - expected = ['startTest', 'setUp', 'test', 'addFailure', 'tearDown', - 'stopTest'] + expected = ['startTest', 'setUp', 'test', 'tearDown', + 'addFailure', 'stopTest'] unittest.FunctionTestCase(test, setUp, tearDown).run(result) self.assertEqual(events, expected) |