mirror of
https://github.com/python/cpython.git
synced 2025-07-28 21:55:21 +00:00
Rename TestCase._result to _resultForDoCleanups to avoid potential clashes in TestCase subclasses. Issue 6072.
This commit is contained in:
parent
a4e0efa4b1
commit
a50af06931
2 changed files with 4 additions and 4 deletions
|
@ -3203,7 +3203,7 @@ class TestCleanUp(TestCase):
|
|||
|
||||
result = MockResult()
|
||||
test = TestableTest('testNothing')
|
||||
test._result = result
|
||||
test._resultForDoCleanups = result
|
||||
|
||||
exc1 = Exception('foo')
|
||||
exc2 = Exception('bar')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue