scipy / scipy_doctest

Floating-point aware doctesting
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

MAINT: avoid pytest future warnings #110

Closed ev-br closed 8 months ago

ev-br commented 8 months ago

$ pytest --pyargs scpdt

Complains about test functions with non-None returns:

scpdt/tests/test_testmod.py::test_stopwords
  /home/br/mambaforge/envs/scipy-dev/lib/python3.10/site-packages/_pytest/python.py:198: PytestReturnNotNoneWarning: Expected None, but scpdt/tests/test_testmod.py::test_stopwords returned TestResults(failed=0, attempted=3), which will be an error in a future version of pytest.  Did you mean to use `assert` instead of `return`?
    warnings.warn(

To this end,

ev-br commented 8 months ago

Minor cleanup, merging straight away.