You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improve deprecation warning message, when a test case returns non None value #120388
warnings.warn(f'It is deprecated to return a value that is not None from a '
f'test case ({method})', DeprecationWarning, stacklevel=3)
The returned value's type is not shown. It can be useful for users
A common case for this warning is that async def test_some is defined in a regular TestCase class, I think that we can improve this specific case and suggest to use IsolatedAsyncioTestCase instead
Activity
pythongh-120388: Improve deprecation warning message, when test retur…
pythongh-120388: Improve deprecation warning message, when test retur…
pythongh-120388: Improve deprecation warning message, when test retur…
gh-120388: Improve deprecation warning message, when test returns non…
AlexWaygood commentedon Jun 12, 2024
Thanks for doing this @sobolevn! :D
pythongh-120388: Improve deprecation warning message, when test retur…
pythongh-120388: Improve deprecation warning message, when test retur…
pythongh-120388: Improve deprecation warning message, when test retur…