diff --git a/test/integration_test.py b/test/integration_test.py index 674408720d..3dca6c709e 100644 --- a/test/integration_test.py +++ b/test/integration_test.py @@ -23,7 +23,8 @@ def test_icon_fcgroup(): def test_icon_extra_config_args(): - spack_spec("icon extra-config-args=--disable-new_feature,--enable-old_config_arg") + spack_spec( + "icon extra-config-args=--disable-new_feature,--enable-old_config_arg") def test_int2lm_parallel(): diff --git a/test/spack_commands.py b/test/spack_commands.py index fcf3fce8f6..93998f146e 100644 --- a/test/spack_commands.py +++ b/test/spack_commands.py @@ -6,11 +6,11 @@ REPO_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..") PACKAGES_DIR = os.path.join(REPO_DIR, "repo", "packages") ALL_PACKAGES = [ - name - for name in os.listdir(PACKAGES_DIR) + name for name in os.listdir(PACKAGES_DIR) if os.path.isdir(os.path.join(PACKAGES_DIR, name)) ] + def time_format(seconds) -> str: "Returns a string formatted as 'XXh YYm ZZ.ZZs'." diff --git a/test/unit_test.py b/test/unit_test.py index 140ecde699..e024555fe9 100644 --- a/test/unit_test.py +++ b/test/unit_test.py @@ -3,6 +3,7 @@ class TimeFormatTest(unittest.TestCase): + def test_example(self): self.assertEqual(time_format(0.123), "0.12s") self.assertEqual(time_format(123.456), "2m 3.46s") diff --git a/tools/package_overlap.py b/tools/package_overlap.py index 4088530521..4a970fd06d 100644 --- a/tools/package_overlap.py +++ b/tools/package_overlap.py @@ -1,4 +1,5 @@ import os + spack = set(os.listdir("./spack/var/spack/repos/builtin/packages")) spack_c2sm = set(os.listdir("./repo/packages"))