Skip to content

Commit c5dcc76

Browse files
committed
Protect test in environments where ROOT is not available
1 parent 16cb4e7 commit c5dcc76

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_run.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
def test_run():
2+
try:
3+
import ROOT
4+
except ImportError:
5+
print("ROOT not available, aborting test")
6+
return True
7+
28
import subprocess
39
chk = subprocess.run("python -m histgrinder.make_sample_file",
410
shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

0 commit comments

Comments
 (0)