-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Pytest doesn't add PYTHONPATH itself #3341
Comments
GitMate.io thinks possibly related issues are #532 (pytest -f does not notice new tests), #2196 (Pytest on cygwin doesn't find files), #1026 (pytest.warn doesn't appear to be working for deprecation warnings), #3312 (pytest.approx doesn't support comparison between arrays and scalars), and #1037 (pytest.deprecated_call doesn't catch PendingDeprecationWarnings). |
this is expected and planned behaviour, actually it came to attention that module execution is a problematic way to run things if we always add the worktree we completely ruin sanely testing packages that where installed with tests from the worktree |
@RonnyPfannschmidt Got it, thank you for the clear explanation |
Closing this for now then. 👍 |
Hello, and thank you for the cool tool! but I noticed that, when I tried to run tests via
pytest
command.I'm always got the
E ModuleNotFoundError:
in order to fix the issue, we need to runpython -m pytest
manually, or justexport PYTHONPATH
to root directory.Will be cool, if Pytest will do it itself, thank you;)
The text was updated successfully, but these errors were encountered: