summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/case.py
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-10-05 00:29:18 (GMT)
committerGitHub <noreply@github.com>2022-10-05 00:29:18 (GMT)
commitc3648f4e4a12ec6efe65684facfcd08996e550ca (patch)
tree8be1249b1b0ba4834237b4341ffe1f5de2477dd6 /Lib/unittest/case.py
parent4e731814d781dae3419e981c0acc3ef833e26e8a (diff)
downloadcpython-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.py2
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):