gh-48330: assert warning is emitted on unittest.TestResult with no addDuration (#103309)

This commit is contained in:
Irit Katriel 2023-04-06 14:05:23 +01:00 committed by GitHub
parent 482b6eeadc
commit 52bc2e7b9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -304,6 +304,7 @@ class Test_TestCase(unittest.TestCase, TestEquality, TestHashing):
def test(self): def test(self):
pass pass
with self.assertWarns(RuntimeWarning):
Foo('test').run() Foo('test').run()
def test_deprecation_of_return_val_from_test(self): def test_deprecation_of_return_val_from_test(self):