Skip to content

Commit 5cc8ccb

Browse files
authored
fix singularity 3 test (#1353)
1 parent bd4c609 commit 5cc8ccb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def get_data(filename: str) -> str:
6262
)
6363

6464
needs_singularity_2_6 = pytest.mark.skipif(
65-
not (distutils.spawn.find_executable("singularity") and is_version_2_6()),
65+
not bool(distutils.spawn.find_executable("singularity") and is_version_2_6()),
6666
reason="Requires that version 2.6.x of singularity executable version is on the system path.",
6767
)
6868

6969
needs_singularity_3_or_newer = pytest.mark.skipif(
70-
not (distutils.spawn.find_executable("singularity") and is_version_3_or_newer),
71-
reason="Requires that version 2.6.x of singularity executable version is on the system path.",
72-
)
70+
(not bool(distutils.spawn.find_executable("singularity"))) or (not is_version_3_or_newer()),
71+
reason="Requires that version 3.x of singularity executable version is on the system path.",
72+
)
7373

7474

7575
windows_needs_docker = pytest.mark.skipif(

0 commit comments

Comments
 (0)