[Python-checkins] cpython (merge 3.2 -> default): Fix no-op tests in importlib.

antoine.pitrou python-checkins at python.org
Fri Dec 30 21:27:39 CET 2011


http://hg.python.org/cpython/rev/656fa057aa28
changeset:   74202:656fa057aa28
parent:      74199:f2b9f1d1dd6e
parent:      74201:cd30304713ae
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Fri Dec 30 21:26:08 2011 +0100
summary:
  Fix no-op tests in importlib.

files:
  Lib/importlib/test/source/test_file_loader.py |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -256,6 +256,8 @@
             with open(bytecode_path, 'rb') as file:
                 self.assertGreater(len(file.read()), 8)
 
+        self._test_magic_only(test)
+
     @source_util.writes_bytecode_files
     def test_bad_magic(self):
         # When the magic number is different, the bytecode should be
@@ -276,6 +278,8 @@
             with open(bc_path, 'rb') as file:
                 self.assertGreater(len(file.read()), 8)
 
+        self._test_partial_timestamp(test)
+
     @source_util.writes_bytecode_files
     def test_no_marshal(self):
         # When there is only the magic number and timestamp, raise EOFError.

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list