[Python-Dev] [Python-checkins] cpython: Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah. (original) (raw)
Brett Cannon brett at python.org
Sun Feb 26 22🔞54 CET 2012
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Next message: [Python-Dev] cpython: Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Feb 26, 2012 at 12:13, antoine.pitrou <python-checkins at python.org>wrote:
http://hg.python.org/cpython/rev/1d7472b015f0 changeset: 75296:1d7472b015f0 user: Antoine Pitrou <solipsis at pitrou.net> date: Sun Feb 26 18:09:50 2012 +0100 summary: Issue #14080: fix sporadic testimp failure. Patch by Stefan Krah.
files: Lib/test/testimp.py | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/test/testimp.py b/Lib/test/testimp.py --- a/Lib/test/testimp.py +++ b/Lib/test/testimp.py @@ -325,6 +325,7 @@ self.addCleanup(cleanup) # Touch the init.py file. support.createemptyfile('pep3147/init.py') + importlib.invalidatecaches() 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20120226/fb9ba841/attachment.html>
- Previous message: [Python-Dev] [Python-checkins] cpython (3.2): Issue #14123: Explicitly mention that old style % string formatting has caveats
- Next message: [Python-Dev] cpython: Issue #14080: fix sporadic test_imp failure. Patch by Stefan Krah.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]