diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 19:31:38 (GMT) |
|---|---|---|
| committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-03 19:31:38 (GMT) |
| commit | 43767638a9590689fd8bcd1fcedd15bbe4660856 (patch) | |
| tree | 8e96e92a7d1e7af2a20aaa15c9383e0d570acacc /Lib/test/test_compileall.py | |
| parent | 7a07cc90c73b5a5587536c2f3fc5c2909b59be39 (diff) | |
| download | cpython-43767638a9590689fd8bcd1fcedd15bbe4660856.zip cpython-43767638a9590689fd8bcd1fcedd15bbe4660856.tar.gz cpython-43767638a9590689fd8bcd1fcedd15bbe4660856.tar.bz2 | |
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 2122ade..ff2515d 100644 --- a/Lib/test/test_compileall.py +++ b/Lib/test/test_compileall.py @@ -40,11 +40,10 @@ class CompileallTests(unittest.TestCase): compare = struct.pack('<4sl', importlib.util.MAGIC_NUMBER, 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: |
