diff --git a/tests/pytest/test_pickling.py b/tests/pytest/test_pickling.py index 72a2df09..336b08e8 100644 --- a/tests/pytest/test_pickling.py +++ b/tests/pytest/test_pickling.py @@ -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)