Skip to content

Add a more informative error message when runtests fails to import from ... #1342

Closed
wants to merge 1 commit into from

3 participants

@mindsocket

When trying to run the test suite after updating my repo, I was getting strage ImportErrors. It turned out there were orphaned empty directories in the tests directory. This change outputs a hint when that happens.

@mjtamlyn
Django member

I'm fairly confident that this isn't the only reason an exception could be raised on that line. It's probably a hangover from the one-off major refactor of how the test suite is structured which shouldn't impact too many people.

@timgraham
Django member

I agree with Marc. You can use a git post-checkout hook to automatically delete empty directories. Added the tip here: https://code.djangoproject.com/wiki/CommitterTips

@timgraham timgraham closed this Jul 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.