mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 14:10:34 +05:00
Skip occ tests if occ is not available
This commit is contained in:
parent
32f51f3bb2
commit
42a4a28580
@ -47,7 +47,11 @@ def test_pickle_stl():
|
|||||||
|
|
||||||
|
|
||||||
def test_pickle_occ():
|
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 = occ.LoadOCCGeometry("../../tutorials/frame.step")
|
||||||
geo_dump = pickle.dumps(geo)
|
geo_dump = pickle.dumps(geo)
|
||||||
geo2 = pickle.loads(geo_dump)
|
geo2 = pickle.loads(geo_dump)
|
||||||
|
Loading…
Reference in New Issue
Block a user