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

CI crashing because marks applied to fixtures now raise errors in newer versions of pytest #980

Closed
lewisblake opened this issue Feb 1, 2024 · 0 comments
Labels

Comments

@lewisblake
Copy link
Member

Many tests on CI currently show something like the following, where the GAW tests are failing:

Run pytest -ra -q --cov --no-cov-on-fail --cov-report xml

==================================== ERRORS ====================================
________________ ERROR collecting tests/plugins/gaw/test_dms.py ________________
tests/plugins/gaw/test_dms.py:16: in <module>
    def data_vmrdms_ams_cvo():
/usr/share/miniconda/envs/pya/lib/python3.10/site-packages/_pytest/fixtures.py:1212: in __call__
    warnings.warn(MARKED_FIXTURE, stacklevel=2)
E   pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
E   See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
=========================== short test summary info ============================
SKIPPED [1] tests/plugins/icos/test_reader.py:11: Skipping tests that require access to AEROCOM database on METNo servers
ERROR tests/plugins/gaw/test_dms.py - pytest.PytestRemovedIn9Warning: Marks applied to fixtures have no effect
See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
1 skipped, 1 error in 2.80s
Error: Process completed with exit code 2.

documentation

@lewisblake lewisblake closed this as not planned Won't fix, can't repro, duplicate, stale Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant