From 27f3c43473367d5f4b14dc6a1ec480814ab04c40 Mon Sep 17 00:00:00 2001 From: Christoph Deil Date: Wed, 10 Dec 2014 11:46:13 +0100 Subject: [PATCH] Disable ROOT unit tests for now. --- gammapy/utils/root/tests/test_convert.py | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/gammapy/utils/root/tests/test_convert.py b/gammapy/utils/root/tests/test_convert.py index 7c58a25c53..f0ed1b66a7 100644 --- a/gammapy/utils/root/tests/test_convert.py +++ b/gammapy/utils/root/tests/test_convert.py @@ -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 +#> 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')