You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bpo-26859: unittest fails with "Start directory is not importable" when trying to run sourceless tests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2016-04-27.08:46:50.914>created_at=<Date2016-03-04.17:09:32.478>labels= ['type-bug', 'library']
title='unittest discovery process not working without .py source files'updated_at=<Date2016-04-27.08:46:50.912>user='https://github.com/stefanseefeld'
The unittest test discovery right now only looks into sub-packages if they contain a __init__.py file. That's an unnecessary requirement, as packages are also importable if only __init__.pyc is present.
Sorry, I missed the little footnote on case 4 about still supporting source-less distributions. I guess in that context we do still need to support this.
However - please check that this does indeed happen on Python master - 3.6. unittest does evolve and if you're testing on 2.7 or something your bug is perhaps already fixed.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: