Skip to content

Commit

Permalink
catch import error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JelmerBot committed Jan 3, 2025
1 parent 2b89eff commit 04b3952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fast_hbcc/tests/test_hbcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_attributes():
assert isinstance(c.single_linkage_tree_, SingleLinkageTree)
assert isinstance(c.minimum_spanning_tree_, MinimumSpanningTree)
assert isinstance(c.approximation_graph_, ApproximationGraph)
except ImportError:
except ModuleNotFoundError:
pass


Expand Down
2 changes: 1 addition & 1 deletion fast_hbcc/tests/test_sub_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def test_attributes():
assert isinstance(b.condensed_trees_[0], CondensedTree)
assert isinstance(b.linkage_trees_[0], SingleLinkageTree)
assert isinstance(b.approximation_graph_, ApproximationGraph)
except ImportError:
except ModuleNotFoundError:
pass


Expand Down

0 comments on commit 04b3952

Please sign in to comment.