Skip to content

Commit

Permalink
deprecated reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheukting committed May 15, 2022
1 parent 0c832ca commit a1f26dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/en/deprecations.rst
Expand Up @@ -252,6 +252,16 @@ or ``pytest.warns(Warning)``.

See :ref:`warns use cases` for examples.


Returning non-None value in test functions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. deprecated:: 7.0

:class:`pytest.PytestReturnNotNoneWarning` will be warn if a test function return values other than None.
It is to avoid typo of an `assert` statement as `return` in a test function makes it passes the test without warning or failing, regardless of if the test should have pass or not.


The ``--strict`` command-line option
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit a1f26dd

Please sign in to comment.