]> granicus.if.org Git - python/commitdiff
fix importlib test failure when bytecode writing is disabled (closes #20796)
authorBenjamin Peterson <benjamin@python.org>
Thu, 27 Feb 2014 18:49:34 +0000 (13:49 -0500)
committerBenjamin Peterson <benjamin@python.org>
Thu, 27 Feb 2014 18:49:34 +0000 (13:49 -0500)
Patch by Berker Peksag.

Lib/test/test_importlib/source/test_file_loader.py

index d59969a8ce038d455eea1a9ece721ad5fe7fdffd..d711cb3e7956560553209ced47a8d22a23fa0f7b 100644 (file)
@@ -162,6 +162,7 @@ class SimpleTest(unittest.TestCase):
             if os.path.exists(pycache):
                 shutil.rmtree(pycache)
 
+    @source_util.writes_bytecode_files
     def test_timestamp_overflow(self):
         # When a modification timestamp is larger than 2**32, it should be
         # truncated rather than raise an OverflowError.