allure-framework / allure-python

Allure integrations for Python test frameworks
https://allurereport.org/
Apache License 2.0
713 stars 233 forks source link

Fix compatibility with pytest 8.1 #795

Closed delatrie closed 4 months ago

delatrie commented 4 months ago

Context

The getfixturedefs call must be fixed to adapt to the recent changes introduced in pytest-dev/pytest#11785 (pytest 8.1.0+). The changes are described here.

[!NOTE] The PR keeps the compatibility with older versions of pytest.

Fixes #794

Piwero commented 4 months ago

Good finding and quick action. When is expected to be this released? I'm experiencing this error and just wondering if worth to downgrade pytest or waitining to to get the fix here. Thanks

delatrie commented 4 months ago

pytest 8.1 has been yanked (see pytest-dev/pytest#12069). We'll wait until the release becomes available again.

folt commented 4 months ago

https://docs.pytest.org/en/stable/changelog.html#pytest-8-1-0-2024-03-03 seems to be an update in release