Skip to content

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

Closed

Description

@congh-nvidia

Description

When using allure-pytest (2.15.3 or 2.16.0) with pytest >= 9.1.0, every fixture produces a phantom <fixture>::<lambda> 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.

Activity

  1. nekdan commented on Nov 12, 2026

    @nekdan
    Contributor

    Hi @delatrie, @epszaw! I've opened #937 with a fix and acceptance tests for this issue (superseding the stale #921). Could you please approve the CI workflow run and take a look when you have a moment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions