Skip to content

Commit

Permalink
Replace unreachable block with simple assertion. Fixes diffcov failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 3, 2025
1 parent 72d550d commit cf269ce
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions importlib_resources/tests/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,4 @@ def test_concrete_methods_are_not_overridden(self):
memory_traversable_concrete_methods & traversable_concrete_methods
)

if overridden_methods:
raise AssertionError(
"MemorySetup.MemoryTraversable overrides Traversable concrete methods, "
"which may mask problems in the Traversable protocol. "
"Please remove the following methods in MemoryTraversable: "
+ ", ".join(overridden_methods)
)
assert not overridden_methods

0 comments on commit cf269ce

Please # to comment.