Test _run_teardown, rather than tearDown
This commit is contained in:
		| @@ -72,9 +72,9 @@ class TestRunTest(TestCase): | |||||||
|         class Case(TestCase): |         class Case(TestCase): | ||||||
|             def test(self): |             def test(self): | ||||||
|                 raise KeyboardInterrupt("go") |                 raise KeyboardInterrupt("go") | ||||||
|             def tearDown(self): |             def _run_teardown(self, result): | ||||||
|                 tearDownRuns.append(self) |                 tearDownRuns.append(self) | ||||||
|                 super(Case, self).tearDown() |                 return super(Case, self)._run_teardown(result) | ||||||
|         case = Case('test') |         case = Case('test') | ||||||
|         run = RunTest(case) |         run = RunTest(case) | ||||||
|         run.result = ExtendedTestResult() |         run.result = ExtendedTestResult() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jonathan Lange
					Jonathan Lange