Skip to content

conftest.py discovery issue on Windows #5194

@soupault

Description

@soupault

In scikit-image we are experiencing an issue with the documentation testing due to conftest.py discovery issues on Windows (we use Windows VMs on AppVeyor and Azure).

Basically, the structure of our testing env is the following:

skimage/
- subpackage0/
--- tests/...
--- (modules)
...
- subpackageN/
--- tests/...
--- (modules)
- setup.py
- conftest.py

Once the package is installed, we run the testing from another directory as follows:

export TEST_ARGS="-v --doctest-modules --cov=skimage"
pytest ${TEST_ARGS} --pyargs skimage

For an example of the (failing) build, see https://dev.azure.com/scikit-image/scikit-image/_build/results?buildId=344.

For Linux and MacOS builds on Travis-CI we use essentially the same scripts. However, it seems that the conftest.py file at the rootdir of the package is correctly located and taken into account, what makes us think that the issue is Windows-specific.

Please, let me know if you need any additional debugging info.

  • a detailed description of the bug or suggestion
  • *output of pip list from the virtual environment you are using: see the Azure link above -> section "Pre-testing"
  • pytest and operating system versions: pytest 4.4.1
  • minimal example if possible: sorry, I don't have a Windows machine for this

Metadata

Metadata

Assignees

Labels

platform: windowswindows platform-specific problemstatus: needs informationreporter needs to provide more information; can be closed after 2 or more weeks of inactivitytopic: configrelated to config handling, argument parsing and config filetype: 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