-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
isolation when importing test modules (nose-style) #268
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
Comments
Original comment by Ronny Pfannschmidt (BitBucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt): this is a tricky interaction of pythonpaths due to your test layout there are 2 tests packages that are not namespaces it would require a custom import system to propperly catch that its up for consideration |
Original comment by holger krekel (BitBucket: hpk42, GitHub: hpk42): This is really about allowing the same import path to map to different file system paths. This can lead to a number of problems and is the reason, i think, why nose2 dropped it, see https://nose2.readthedocs.org/en/latest/differences.html#test-discovery-and-loading For now, i regard this issue as an "enhancement" and we may arrive at the conclusion to not support it. Depends also on further feedback. |
Closing as irrelevant |
Originally reported by: BitBucket: devtty0, GitHub: devtty0
I have a problem with multiple test dirs (find an example attached).
I have the following project structure:
if i put
__init__.py
into core directory, py.test works well:Nose works fine without
__init__.py
in core directory:The text was updated successfully, but these errors were encountered: