Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest 6 + pytest-cython cause test failure #36

Open
alerque opened this issue Oct 7, 2020 · 1 comment
Open

pytest 6 + pytest-cython cause test failure #36

alerque opened this issue Oct 7, 2020 · 1 comment

Comments

@alerque
Copy link

alerque commented Oct 7, 2020

At some point the Arch Linux package for 0.4.1 stopped building because the tests started failing. I just bumped the packages to 0.5.1, but tests are still failing.

I believe this has to do with the dependencies being used to test being newer than something this project is actually using. Here is the related output including versions of test dependencies and the deprecation notes that it errors out on:

==> Starting check()...
============================================================================================== test session starts ==============================================================================================
platform linux -- Python 3.8.5, pytest-6.1.0, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python
cachedir: .pytest_cache
Using --randomly-seed=867315760
rootdir: /home/caleb/projects/aur/python-skia-pathops/src/skia-pathops-0.5.1, configfile: tox.ini, testpaths: src/python/pathops, tests
plugins: randomly-3.4.1, forked-1.3.0, cov-2.10.1, xdist-2.1.0, cython-0.1.0
collected 43 items / 1 error / 42 selected

==================================================================================================== ERRORS =====================================================================================================
________________________________________________________________________________ ERROR collecting src/python/pathops/__init__.py ________________________________________________________________________________
Direct construction of DoctestModule has been deprecated, please use DoctestModule.from_parent.
See https://docs.pytest.org/en/stable/deprecations.html#node-construction-changed-to-node-from-parent for more details.
============================================================================================ short test summary info ============================================================================================
ERROR src/python/pathops/__init__.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=============================================================================================== 1 error in 0.12s ================================================================================================
==> ERROR: A failure occurred in check().
@anthrotype
Copy link
Member

Thanks. I noticed that as well.
For the time being you can try using pytest < 6, I think that will work.

The pytest-cython module is using a deprecated pytest API. It has only been fixed very recently lgpage/pytest-cython#5

I hope that they publish a new release with that fix soon.

@anthrotype anthrotype changed the title Latest test dependencies cause test failure pytest 6 + pytest-cython cause test failure Oct 7, 2020
anthrotype added a commit that referenced this issue Dec 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants