Files
pytest2/changelog/7337.improvement.rst
2022-05-25 09:48:02 -03:00

2 lines
270 B
ReStructuredText

A warning is now emitted if a test function returns something other than `None`. This prevents a common mistake among beginners that expect that returning a `bool` (for example `return foo(a, b) == result`) would cause a test to pass or fail, instead of using `assert`.