diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 21:31:18 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 21:31:18 +0200 |
commit | 60713979045babcbec3cfeed62429a7d57c88d6e (patch) | |
tree | b67b16e7f0def2ff07b7693c5c41a0d00248884c /Lib/test/test_compileall.py | |
parent | 12da7372a223fc682a2d1bb9eb646da747e61fd8 (diff) | |
download | cpython-60713979045babcbec3cfeed62429a7d57c88d6e.tar.gz |
Issue #18702: All skipped tests now reported as skipped.
Diffstat (limited to 'Lib/test/test_compileall.py')
-rw-r--r-- | Lib/test/test_compileall.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_compileall.py b/Lib/test/test_compileall.py index ba9fe465f8..fddb538efb 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -39,11 +39,10 @@ class CompileallTests(unittest.TestCase): compare = struct.pack('<4sl', imp.get_magic(), mtime) return data, compare + @unittest.skipUnless(hasattr(os, 'stat'), 'test needs os.stat()') def recreation_check(self, metadata): """Check that compileall recreates bytecode when the new metadata is used.""" - if not hasattr(os, 'stat'): - return py_compile.compile(self.source_path) self.assertEqual(*self.data()) with open(self.bc_path, 'rb') as file: |