#11420: merge with 3.2.

This commit is contained in:
Ezio Melotti 2013-03-16 21:49:20 +02:00
commit e5e7a7cbf4
6 changed files with 54 additions and 31 deletions

View file

@ -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