Opened 11 years ago

Closed 11 years ago

#20714 closed Cleanup/optimization (wontfix)

Add a more informative error message when runtests fails to import from test suite directory

Reported by: anonymous Owned by: nobody
Component: Utilities Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

When trying to run the test suite after updating my repo, I was getting strange ImportErrors. It turned out there were orphaned empty directories in the tests directory. A small change that prints a hint when that happens would help avoid confusion for new and less regular contributors.

A pull request for this is available here:
https://github.com/django/django/pull/1342

Change History (1)

comment:1 by Tim Graham, 11 years ago

Resolution: wontfix
Status: newclosed

Comments from the pull request:

Marc: "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."

me: "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"

Note: See TracTickets for help on using tickets.
Back to Top