You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I summarized that the overloading of fixtures in the same file is not in the order of bytecode compilation, but in the lexicographic order of functions, resulting in the phenomenon where f0 cannot reload f1 while f2 can reload f1.
I'm not sure if this is a feature or a bug
The text was updated successfully, but these errors were encountered:
description
I have some fixtures in the same test file, and I need to reload one of them as following:
what i want
When i call “f1” its return 0 because its actually executed “f0” as following:
pytest result
But this is fail for test
env
os:mac 15.0.1
python:3.12.4
pytest:8.3.2
more detail
When I change name ‘f0’ -> 'f2', as following, it works well:
So I summarized that the overloading of fixtures in the same file is not in the order of bytecode compilation, but in the lexicographic order of functions, resulting in the phenomenon where f0 cannot reload f1 while f2 can reload f1.
I'm not sure if this is a feature or a bug
The text was updated successfully, but these errors were encountered: