diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-10-05 00:29:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 00:29:18 (GMT) |
commit | c3648f4e4a12ec6efe65684facfcd08996e550ca (patch) | |
tree | 8be1249b1b0ba4834237b4341ffe1f5de2477dd6 /Lib/unittest/case.py | |
parent | 4e731814d781dae3419e981c0acc3ef833e26e8a (diff) | |
download | cpython-c3648f4e4a12ec6efe65684facfcd08996e550ca.zip cpython-c3648f4e4a12ec6efe65684facfcd08996e550ca.tar.gz cpython-c3648f4e4a12ec6efe65684facfcd08996e550ca.tar.bz2 |
gh-97837: Change deprecation warning message in `unittest` (#97838)
Diffstat (limited to 'Lib/unittest/case.py')
-rw-r--r-- | Lib/unittest/case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index af83033..b01f660 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -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): |