mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
[3.11] gh-97837: Change deprecation warning message in unittest
(GH-97838) (GH-97887)
(cherry picked from commit c3648f4e4a
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:orsenthil
This commit is contained in:
parent
9133aabc70
commit
8c517d88fb
5 changed files with 37 additions and 8 deletions
|
@ -577,7 +577,7 @@ class TestCase(object):
|
|||
|
||||
def _callTestMethod(self, method):
|
||||
if method() is not None:
|
||||
warnings.warn(f'It is deprecated to return a value!=None from a '
|
||||
warnings.warn(f'It is deprecated to return a value that is not None from a '
|
||||
f'test case ({method})', DeprecationWarning, stacklevel=3)
|
||||
|
||||
def _callTearDown(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue