conftest.py loaded in wrong order. #1404
Labels
topic: collection
related to the collection phase
topic: config
related to config handling, argument parsing and config file
Description of the bug:
Docs says:
But my tests shows, that this is happens in some other way. Here is my directory structure.
Each
conftest.py
file has such content:Here is what I get, executing
py.test -svvv .
:Notice the first entry - for
test_root.py
loadedconftest.py
files from root directoriy andb
. Butb
is not closer to the filesystem root. Also it is not clear for me, why in some cases twoconftest.py
are loaded and in some - three?Output of
pip list
:pip (8.0.2)
py (1.4.31)
pytest (2.8.7)
setuptools (18.2)
Versions:
OS: Linux Mint 17.3 Rosa
PyTest: 2.8.7
Example project:
https://github.com/AndrewPashkin/pytest_issue_1404
The text was updated successfully, but these errors were encountered: