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

ImportError from package under test results in 0 tests discovered #98

Closed
sjagoe opened this issue Nov 19, 2014 · 1 comment · Fixed by #121
Closed

ImportError from package under test results in 0 tests discovered #98

sjagoe opened this issue Nov 19, 2014 · 1 comment · Fixed by #121
Labels
Milestone

Comments

@sjagoe
Copy link
Member

sjagoe commented Nov 19, 2014

Adding raise ImportError() to the top-level __init__.py of a project yields this behaviour:

$ haas

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
@sjagoe sjagoe added the bug label Nov 19, 2014
@sjagoe sjagoe added this to the 0.5.0 milestone Nov 19, 2014
@sjagoe sjagoe modified the milestones: 0.5.0, 0.5.1 Nov 27, 2014
@sjagoe sjagoe modified the milestones: 0.7.0, 0.6.1 Apr 12, 2015
@sjagoe
Copy link
Member Author

sjagoe commented Apr 12, 2015

The root cause here is a "feature" allowing tests to be discovered in Python 3 packages that lack an __init__.py. That feature will be considered for removal in v0.7.0 (see #113).

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

Successfully merging a pull request may close this issue.

1 participant