diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2022-05-17 12:45:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 12:45:52 +0200 |
commit | f454a683b512252d07fb8d5a7098d9ade0c6247a (patch) | |
tree | 72a39d1b6124092b826ed7e0dc9c8869b729d993 /lib | |
parent | d7d0c892d8e33ed0157140a28ef3e14c5bfe6577 (diff) | |
download | spack-f454a683b512252d07fb8d5a7098d9ade0c6247a.tar.gz spack-f454a683b512252d07fb8d5a7098d9ade0c6247a.tar.bz2 spack-f454a683b512252d07fb8d5a7098d9ade0c6247a.tar.xz spack-f454a683b512252d07fb8d5a7098d9ade0c6247a.zip |
Mark test_repo_last_mtime xfail on Python < 3.5 (#30696)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/test/repo.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/test/repo.py b/lib/spack/spack/test/repo.py index e43c572065..98b202635d 100644 --- a/lib/spack/spack/test/repo.py +++ b/lib/spack/spack/test/repo.py @@ -2,8 +2,8 @@ # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) - import os +import sys import pytest @@ -59,6 +59,9 @@ def test_repo_anonymous_pkg(mutable_mock_repo): @pytest.mark.maybeslow +@pytest.mark.skipif( + sys.version_info < (3, 5), reason="Test started failing spuriously on Python 2.7" +) def test_repo_last_mtime(): latest_mtime = max(os.path.getmtime(p.module.__file__) for p in spack.repo.path.all_packages()) |