diff --git a/conda/meta.yaml b/conda/meta.yaml index 15eac79..11bc4c5 100644 --- a/conda/meta.yaml +++ b/conda/meta.yaml @@ -50,7 +50,7 @@ test: - test/data/** commands: - cd test - - pytest -v --ignore=test_stat.py + - pytest -v --ignore=test_stat.py --ignore=test_parsing_axialtree.py about: home: {{ home }} diff --git a/test/test_parsing_axialtree.py b/test/test_parsing_axialtree.py index 553e307..3496122 100644 --- a/test/test_parsing_axialtree.py +++ b/test/test_parsing_axialtree.py @@ -1,7 +1,17 @@ from openalea.mtg.io import axialtree2mtg, mtg2mss , lpy2mtg, mtg2lpy -from openalea.lpy import AxialTree, generateScene, Lsystem from openalea.plantgl.all import Scene, Viewer -from path import Path as path +from pathlib import Path as path + +import pytest + +try: + from openalea.lpy import AxialTree, generateScene, Lsystem + WITH_LPY = True +except ImportError: + WITH_LPY = False + +if not WITH_LPY: + pytest.skip("openalea.lpy not available", allow_module_level=True) def str2mtg(s): #s = s.replace('N', 'F')