summaryrefslogtreecommitdiff
path: root/src/python/test/test_simplex_tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/python/test/test_simplex_tree.py')
-rwxr-xr-xsrc/python/test/test_simplex_tree.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/python/test/test_simplex_tree.py b/src/python/test/test_simplex_tree.py
index 3b23fa0b..15b472ee 100755
--- a/src/python/test/test_simplex_tree.py
+++ b/src/python/test/test_simplex_tree.py
@@ -8,7 +8,7 @@
- YYYY/MM Author: Description of the modification
"""
-from gudhi import SimplexTree
+from gudhi import SimplexTree, simplex_tree
import pytest
__author__ = "Vincent Rouvreau"
@@ -353,11 +353,15 @@ def test_collapse_edges():
assert st.num_simplices() == 10
+ # If no Eigen3, collapse_edges just return a copy, no action. Maybe it would require some user warning
st.collapse_edges()
- assert st.num_simplices() == 9
- assert st.find([1, 3]) == False
- for simplex in st.get_skeleton(0):
- assert simplex[1] == 1.
+ if simplex_tree.__GUDHI_USE_EIGEN3:
+ assert st.num_simplices() == 9
+ assert st.find([1, 3]) == False
+ for simplex in st.get_skeleton(0):
+ assert simplex[1] == 1.
+ else:
+ assert st.num_simplices() == 10
def test_reset_filtration():
st = SimplexTree()