Change PytestReturnNotNoneWarning to return a normal warning (#11211)
Fixes #10465
This commit is contained in:
parent
e787d2ed48
commit
333e4eba6b
1
AUTHORS
1
AUTHORS
|
@ -143,6 +143,7 @@ Feng Ma
|
||||||
Florian Bruhin
|
Florian Bruhin
|
||||||
Florian Dahlitz
|
Florian Dahlitz
|
||||||
Floris Bruynooghe
|
Floris Bruynooghe
|
||||||
|
Fraser Stark
|
||||||
Gabriel Landau
|
Gabriel Landau
|
||||||
Gabriel Reis
|
Gabriel Reis
|
||||||
Garvit Shubham
|
Garvit Shubham
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Test functions returning a value other than None will now issue a :class:`pytest.PytestWarning` instead of :class:`pytest.PytestRemovedIn8Warning`, meaning this will stay a warning instead of becoming an error in the future.
|
|
@ -1,2 +1 @@
|
||||||
Dropped support for Python 3.7, which `reached end-of-life on 2023-06-27
|
Dropped support for Python 3.7, which `reached end-of-life on 2023-06-27 <https://devguide.python.org/versions/>`__.
|
||||||
<https://devguide.python.org/versions/>`__.
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ class PytestRemovedIn9Warning(PytestDeprecationWarning):
|
||||||
__module__ = "pytest"
|
__module__ = "pytest"
|
||||||
|
|
||||||
|
|
||||||
class PytestReturnNotNoneWarning(PytestRemovedIn8Warning):
|
class PytestReturnNotNoneWarning(PytestWarning):
|
||||||
"""Warning emitted when a test function is returning value other than None."""
|
"""Warning emitted when a test function is returning value other than None."""
|
||||||
|
|
||||||
__module__ = "pytest"
|
__module__ = "pytest"
|
||||||
|
|
Loading…
Reference in New Issue