Closed
Description
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.