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.
Add a more informative error message when runtests fails to import fr…
…om an orphaned test directory
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.
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