diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-05 03:55:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 03:55:06 (GMT) |
commit | 8c517d88fb5ac6f1145128804fe10d5ef9d12b07 (patch) | |
tree | 58cbcfc7cf7387bcb59810475ab4a234205a9ddc /Lib/unittest/async_case.py | |
parent | 9133aabc708de881c06458b4e316489178475c3c (diff) | |
download | cpython-8c517d88fb5ac6f1145128804fe10d5ef9d12b07.zip cpython-8c517d88fb5ac6f1145128804fe10d5ef9d12b07.tar.gz cpython-8c517d88fb5ac6f1145128804fe10d5ef9d12b07.tar.bz2 |
[3.11] gh-97837: Change deprecation warning message in `unittest` (GH-97838) (GH-97887)
(cherry picked from commit c3648f4e4a12ec6efe65684facfcd08996e550ca)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Automerge-Triggered-By: GH:orsenthil
Diffstat (limited to 'Lib/unittest/async_case.py')
-rw-r--r-- | Lib/unittest/async_case.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/unittest/async_case.py b/Lib/unittest/async_case.py index 3457e92..bd2a471 100644 --- a/Lib/unittest/async_case.py +++ b/Lib/unittest/async_case.py @@ -88,7 +88,7 @@ class IsolatedAsyncioTestCase(TestCase): def _callTestMethod(self, method): if self._callMaybeAsync(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=4) def _callTearDown(self): |