Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Windows with uppercase folders with versions >= 5.1.0 and conftest #5837

Closed
jfthuong opened this issue Sep 11, 2019 · 1 comment
Closed

Comments

@jfthuong
Copy link

jfthuong commented Sep 11, 2019

Hi,

Related to issue #2761, I have an issue in Windows with folders containing uppercase and conftest.py.

I have the following organization

E:/Prototypes/Toto/
  -> __init__.py
  -> conftest.py
  -> tests/
       -> test.py

See following files in zip: Toto.zip

When running pytest 5.1.2 (Python 3.7.1), I have the following error:

ImportError while loading conftest 'e:\prototypes\toto\conftest.py'.
ModuleNotFoundError: No module named 'toto'

This works fine with pytest 5.0.1:

platform win32 -- Python 3.7.1, pytest-5.0.1, py-1.8.0, pluggy-0.13.0
rootdir: E:\Prototypes\Toto
plugins: cov-2.6.1, forked-1.0.2, html-1.22.0, instafail-0.4.1, metadata-1.8.0, xdist-1.26.1
collected 2 items

tests\test_case.py .F

This is my list of installed modules:
pip_list.txt

@asottile
Copy link
Member

I believe this is a duplciate of #5819

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants