On 2022/03/29 22:26, Stuart Henderson wrote:
> As things stand they rely on setuppy test runner support which has a
> warning in capital letters when it runs. Not sure when it goes away but
> I would like to see that gone. Using pytest's test runner is generally
> the easy way to do this and is the standard way for most python ports
> that have been touched recently.

Also you often get better information from pytest's runner than the
setup.py one

With MODPY_PYTEST_ARGS=tests.py in jsonpointer you get to see this
warning too:

===>  Regression tests for py3-jsonpointer-2.2
============================= test session starts ==============================
platform openbsd7 -- Python 3.9.10, pytest-7.1.0, pluggy-1.0.0
rootdir: /usr/obj/ports/py-jsonpointer-2.2-python3/jsonpointer-2.2
plugins: remotedata-0.3.3, openfiles-0.5.0, xdist-2.5.0, lazy-fixture-0.6.3, 
hypothesis-6.39.0, astropy-header-0.2.1, filter-subpackage-0.1.1, mock-3.7.0, 
arraydiff-0.5.0, doctestplus-0.12.0, cov-3.0.0
collected 19 items

tests.py ...................                                             [100%]

=============================== warnings summary ===============================
tests.py:88
  /usr/obj/ports/py-jsonpointer-2.2-python3/jsonpointer-2.2/tests.py:88: 
DeprecationWarning: invalid escape sequence \j
    ("/i\\j", ['i\j']),

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 19 passed, 1 warning in 0.25s =========================

Reply via email to