Tuesday, March 29, 2022

Re: [new] devel/py-jsonpointer and devel/py-jsonpatch

thanks for the explanation about MODPY_PYTEST. i will give these an update and submit updated tarballs

------- Original Message -------

On Tuesday, March 29th, 2022 at 9:29 PM, Stuart Henderson <stu@spacehopper.org> wrote:

> 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 =========================

No comments:

Post a Comment