allure-framework / allure-framework/allure-python

Phantom <lambda> teardown entries with unknown status when using pytest 9.1+

Open
#918 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
814
Forks
260
PR merge metrics
No merged PRs in 30d

Description

## Description

When using `allure-pytest` (2.15.3 or 2.16.0) with `pytest >= 9.1.0`, every fixture produces a phantom `::` afterStage entry in the Allure report with `unknown` status. These entries are not real teardown failures — they are internal pytest finalizers that allure wraps but are never invoked through allure's wrapper.

Image

Versions
- pytest: 9.1.1
- allure-pytest: 2.16.0
- Python: 3.12
Works correctly with pytest <= 9.0.x.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the report with allure-pytest 2.15.3 or 2.16.0 and pytest 9.1.1, then compare it with pytest 9.0.x. Trace the allure-pytest fixture teardown integration implicated by the issue; done means reports no longer contain phantom :: afterStage entries with unknown status.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.