On Sun, Feb 26, 2012 at 12:13, antoine.pitrou <python-check...@python.org>wrote:
> http://hg.python.org/cpython/rev/1d7472b015f0 > changeset: 75296:1d7472b015f0 > user: Antoine Pitrou <solip...@pitrou.net> > date: Sun Feb 26 18:09:50 2012 +0100 > summary: > Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah. > > files: > Lib/test/test_imp.py | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > > diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py > --- a/Lib/test/test_imp.py > +++ b/Lib/test/test_imp.py > @@ -325,6 +325,7 @@ > self.addCleanup(cleanup) > # Touch the __init__.py file. > support.create_empty_file('pep3147/__init__.py') > + importlib.invalidate_caches() > expected___file__ = os.sep.join(('.', 'pep3147', '__init__.py')) > m = __import__('pep3147') > self.assertEqual(m.__file__, expected___file__, (m.__file__, > m.__path__)) Should that just go into support.create_empty_file()? Since it's just a performance issue I don't see it causing unexpected test failures and it might help with any future issues.
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com