diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 19:50:04 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-16 19:50:04 (GMT) |
commit | 469da97c1e7b1a36771ed6fe819473ba81569422 (patch) | |
tree | 3ef7b602007ddd6e0d8d5fe48ac9a03d5e29a14e /Lib/test/test_importlib | |
parent | 2d6acd2ac2399ecc0f163c12c5695f434ba14955 (diff) | |
parent | e5e7a7cbf450f80fa9a88038878b6bd525313f37 (diff) | |
download | cpython-469da97c1e7b1a36771ed6fe819473ba81569422.zip cpython-469da97c1e7b1a36771ed6fe819473ba81569422.tar.gz cpython-469da97c1e7b1a36771ed6fe819473ba81569422.tar.bz2 |
#11420: merge with 3.3.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r-- | Lib/test/test_importlib/source/test_file_loader.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/source/test_file_loader.py b/Lib/test/test_importlib/source/test_file_loader.py index dd28e8f..80999e8 100644 --- a/Lib/test/test_importlib/source/test_file_loader.py +++ b/Lib/test/test_importlib/source/test_file_loader.py @@ -159,7 +159,8 @@ class SimpleTest(unittest.TestCase): finally: os.unlink(file_path) pycache = os.path.dirname(imp.cache_from_source(file_path)) - shutil.rmtree(pycache) + if os.path.exists(pycache): + shutil.rmtree(pycache) def test_timestamp_overflow(self): # When a modification timestamp is larger than 2**32, it should be |