mirror of
https://github.com/python/cpython.git
synced 2025-11-11 22:55:08 +00:00
gh-48330: assert warning is emitted on unittest.TestResult with no addDuration (#103309)
This commit is contained in:
parent
482b6eeadc
commit
52bc2e7b9d
1 changed files with 2 additions and 1 deletions
|
|
@ -304,7 +304,8 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
|
||||||
def test(self):
|
def test(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
Foo('test').run()
|
with self.assertWarns(RuntimeWarning):
|
||||||
|
Foo('test').run()
|
||||||
|
|
||||||
def test_deprecation_of_return_val_from_test(self):
|
def test_deprecation_of_return_val_from_test(self):
|
||||||
# Issue 41322 - deprecate return of value that is not None from a test
|
# Issue 41322 - deprecate return of value that is not None from a test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue