Skip to content

Commit 3a36735

Browse files
committed
update tests
1 parent fb7a8d7 commit 3a36735

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/compas/datastructures/test_network.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import pytest
22

3-
import compas
43
from compas.datastructures import Network
54

65

@@ -33,15 +32,19 @@ def test_add_node():
3332

3433

3534
def test_non_planar(k5_network):
36-
if compas.IPY:
35+
try:
36+
import planarity # noqa: F401
37+
except ImportError:
3738
return
3839

3940
from compas.datastructures import network_is_planar
4041
assert network_is_planar(k5_network) is not True
4142

4243

4344
def test_planar(k5_network):
44-
if compas.IPY:
45+
try:
46+
import planarity # noqa: F401
47+
except ImportError:
4548
return
4649

4750
from compas.datastructures import network_is_planar

0 commit comments

Comments
 (0)