Skip to content

Commit

Permalink
Disable ROOT unit tests for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdeil committed Dec 10, 2014
1 parent 3689560 commit 27f3c43
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions gammapy/utils/root/tests/test_convert.py
Expand Up @@ -6,12 +6,22 @@

HAS_ROOT = False

try:
import ROOT
from ... import root
HAS_ROOT = True
except:
HAS_ROOT = False
# TODO: re-enable this
# I'm disabling ROOT because it makes the pytest collector crash like this:
# _____________________________________________________ ERROR collecting gammapy/utils/tests/test_const.py _____________________________________________________
#gammapy/utils/tests/test_const.py:4: in <module>
#> from ..const import conversion_factor as cf
#/opt/local/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/ROOT.py:354: in _importhook
#> return _orig_ihook( name, glbls, lcls, fromlist )
#E ImportError: No module named 'const'

#
#try:
# import ROOT
# from ... import root
# HAS_ROOT = True
#except:
# HAS_ROOT = False


@pytest.mark.skipif('not HAS_ROOT')
Expand Down

0 comments on commit 27f3c43

Please sign in to comment.