Skip to content

Commit

Permalink
Fixed an issue with code coverage in tests due to garbage collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrichardwebster committed Jun 3, 2024
1 parent 3ff2e5e commit c59100b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class TestPerturbationOcclusion:
def teardown(self) -> None:
# Collect any temporary implementations so they are not returned during
# later `*.get_impl()` requests.
gc.collect()
gc.collect() # pragma: no cover

def test_configuration(self) -> None:
""" Test configuration suite using known simple implementations. """
Expand Down
2 changes: 1 addition & 1 deletion tests/impls/gen_image_similarity_blackbox_sal/test_sbsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TestBlackBoxSBSM:
def teardown(self) -> None:
# Collect any temporary implementations so they are not returned during
# later `*.get_impl()` requests.
gc.collect()
gc.collect() # pragma: no cover

def test_configuration(self) -> None:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TestPerturbationOcclusion:
def teardown(self) -> None:
# Collect any temporary implementations so they are not returned during
# later `*.get_impl()` requests.
gc.collect()
gc.collect() # pragma: no cover

def test_configuration(self) -> None:
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TestPerturbationOcclusion:
def teardown(self) -> None:
# Collect any temporary implementations so they are not returned during
# later `*.get_impl()` requests.
gc.collect()
gc.collect() # pragma: no cover

def test_configuration(self) -> None:
"""
Expand Down

0 comments on commit c59100b

Please sign in to comment.