#11420: merge with 3.3.

This commit is contained in:
Ezio Melotti 2013-03-16 21:50:04 +02:00
commit 469da97c1e
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