cpython: f4afc6858ed2 (original) (raw)
Mercurial > cpython
changeset 74112:f4afc6858ed2 3.2
Issue #13645: fix test_import failure when run immediately after test_coding. [#13645]
Antoine Pitrou solipsis@pitrou.net | |
---|---|
date | Wed, 21 Dec 2011 15:50:42 +0100 |
parents | 19df72a77b39 |
children | a6bd166abde5 82557279efd2 |
files | Lib/test/test_import.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_import.py 3 |
line wrap: on
line diff
--- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -107,8 +107,9 @@ class ImportTests(unittest.TestCase): open(fname, 'w').close() os.chmod(fname, (stat.S_IRUSR | stat.S_IRGRP | stat.S_IROTH | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH))
fn = imp.cache_from_source(fname)[](#l1.7)
unlink(fn)[](#l1.8) __import__(TESTFN)[](#l1.9)
fn = imp.cache_from_source(fname)[](#l1.10) if not os.path.exists(fn):[](#l1.11) self.fail("__import__ did not result in creation of "[](#l1.12) "either a .pyc or .pyo file")[](#l1.13)