-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity
Description
I'm using Python 3.6 and pytest 3.0.6, on Windows and Linux.
I have noticed a strange issue. Here is a test project which I used to reproduce the problem: https://github.com/mloskot/python-package/
-
Go to root folder of the project
-
Run
pytestcommand and observe the error (see failing Travis CI build 1):
E ModuleNotFoundError: No module named 'pets'
- Run
python -m pytestcommand and observe successful run, with all modules under test being found (see Travis CI build 2)
AFAIK, both commands are equivalent.
The only bug report related to ModuleNotFoundError and Python 3.6 I found is #2132 but I'm not sure if this is related in any way.
bernard-murunga, suzukimilanpaak, ajackal, hunan-rostomyan, eulersson and 15 more
Metadata
Metadata
Assignees
Labels
type: questiongeneral question, might be closed after 2 weeks of inactivitygeneral question, might be closed after 2 weeks of inactivity