fix issue102: report more useful errors and hints for when a

test directory was renamed and some pyc/__pycache__ remain
This commit is contained in:
holger krekel
2011-12-20 12:20:59 +00:00
parent 8e83af1c33
commit f2791988f9
4 changed files with 8 additions and 6 deletions

View File

@@ -259,7 +259,8 @@ class Module(pytest.File, PyCollectorMixin):
" %s\n"
"which is not the same as the test file we want to collect:\n"
" %s\n"
"HINT: use a unique basename for your test file modules"
"HINT: remove __pycache__ / .pyc files and/or use a "
"unique basename for your test file modules"
% e.args
)
#print "imported test module", mod