Skip to content

Commit c0596ea

Browse files
committed
use some test imports to prevent automated removal
1 parent 70b92fe commit c0596ea

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/toil/test/__init__.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,11 @@ def _mesos_avail() -> bool:
589589
if not (which("mesos-master") or which("mesos-agent")):
590590
return False
591591
try:
592-
pass
592+
import psutil
593+
import pymesos
594+
595+
str(psutil) # to prevent removal of this import
596+
str(pymesos) # to prevent removal of this import
593597
except ImportError:
594598
return False
595599
return True
@@ -790,7 +794,9 @@ def needs_cwl(test_item: MT) -> MT:
790794

791795
def _cwl_available() -> bool:
792796
try:
793-
pass
797+
import cwltool
798+
799+
str(cwltool) # to prevent removal of this import
794800
except ImportError:
795801
return False
796802
return True

0 commit comments

Comments
 (0)