Skip to content

Incorrect finalize/cleanup order of fixtures when using request.getfixturevalue() #1895

Description

@jbeluch

Here's a test file that can be run to verify the issue: http://hastebin.com/exozenenas.py

Basically, when you have 2 fixtures, one session and one function scoped that both require another session scoped fixture via request.getfixturevalue(), the cleanup order of the fixtures is incorrect. The shared resource gets cleaned up before the session fixture that relies on it.

Activity

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

    topic: fixturesanything involving fixtures directly or indirectlytype: bugproblem that needs to be addressed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions