#3 tests fail against pytest 8.4.0
Closed by encukou. Opened by slev.

============================= test session starts ==============================
platform linux -- Python 3.12.11, pytest-8.4.1, pluggy-1.6.0 -- /usr/src/RPM/BUILD/python3-module-pytest_sourceorder-0.6.0/.run_venv/bin/python3
cachedir: .pytest_cache
rootdir: /usr/src/RPM/BUILD/python3-module-pytest_sourceorder-0.6.0
configfile: pyproject.toml
plugins: sourceorder-0.6.0
collecting ... collected 11 items / 1 error
==================================== ERRORS ====================================
_____________________ ERROR collecting test_sourceorder.py _____________________
'yield' keyword is allowed in fixtures, but not in tests (test_nose_generator)

https://docs.pytest.org/en/stable/changelog.html#pytest-8-4-0-2025-06-02

Test functions containing a yield now cause an explicit error. They have not been run since pytest 4.0, and were previously marked as an expected failure and deprecation warning.

Migration guide:
https://docs.pytest.org/en/stable/deprecations.html#yield-tests-deprecated


Thank you for the report.
The failing test ensured that this plugin works with this old feature. The test is now removed, thanks to @thrnciar for the PR.

Tagged as v0.6.0.post1. I'll not do a PyPI release since those don't include tests.

Metadata Update from @encukou:
- Issue status updated to: Closed (was: Open)

Metadata
Related Pull Requests