[issue7559] TestLoader.loadTestsFromName swallows import errors

Chris Jerdonek report at bugs.python.org
Mon Jun 4 17:45:15 CEST 2012


Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:

That sounds fine.  I just got the sense from above that there was a desire to call invalidate_caches() as few times as possible.

And yes, I agree only before is necessary.  I had just taken what you said above literally (that "[the cache] should be reset by tests that change what's on the path"), thinking that you wanted to maintain the principle that tests should leave things as they were at the beginning.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7559>
_______________________________________


More information about the Python-bugs-list mailing list