Skip to content

Commit

Permalink
Skip pympler benchmark if not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Sep 22, 2024
1 parent 714cd82 commit 9a53c9c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ def test_bench_serialize(self, capsys):
class TestMemory:
def test_bench_node_size(self, capsys):
""" """
from pympler.asizeof import asized, asizeof

try:
from pympler.asizeof import asized, asizeof
except ImportError:
raise pytest.skip("pympler not installed") from None

results = ["Memory results"]
tree = fixture.generate_tree([10, 9])
Expand Down

0 comments on commit 9a53c9c

Please sign in to comment.