Skip occ tests if occ is not available

This commit is contained in:
Matthias Hochsteger 2018-12-14 14:05:28 +01:00
parent 32f51f3bb2
commit 42a4a28580

View File

@ -47,7 +47,11 @@ def test_pickle_stl():
def test_pickle_occ():
import netgen.NgOCC as occ
try:
import netgen.NgOCC as occ
except:
import pytest
pytest.skip("can't import occ")
geo = occ.LoadOCCGeometry("../../tutorials/frame.step")
geo_dump = pickle.dumps(geo)
geo2 = pickle.loads(geo_dump)