Skip to content

Commit

Permalink
fixed optional dep yaml in spec pipe test
Browse files Browse the repository at this point in the history
  • Loading branch information
joleroi committed Sep 29, 2015
1 parent df87640 commit 37bec4f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 37 deletions.
36 changes: 0 additions & 36 deletions gammapy/scripts/spectrum_pipe_example.yaml

This file was deleted.

7 changes: 6 additions & 1 deletion gammapy/scripts/tests/test_spectrum_pipe.py
Expand Up @@ -4,10 +4,15 @@
from astropy.tests.helper import remote_data
from gammapy.scripts import GammapySpectrumAnalysis
from ...datasets import get_path
import yaml

try:
import yaml
HAS_YAML = True
except ImportError:
HAS_YAML = False

@remote_data
@pytest.mark.skipif('not HAS_YAML')
def test_spectrum_pipe(tmpdir):

configfile = get_path('../test_datasets/scripts/spectrum_pipe_example.yaml',
Expand Down

0 comments on commit 37bec4f

Please sign in to comment.