Skip to content

Commit

Permalink
nocover
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Oct 12, 2024
1 parent 473ae9c commit 04f599b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def _enter_context(cm: Any, addcleanup: Callable[..., None]) -> Any:
try:
enter = cls.__enter__
exit = cls.__exit__
except AttributeError:
except AttributeError: # pragma: no cover
raise TypeError(
f"'{cls.__module__}.{cls.__qualname__}' object does "
f"not support the context manager protocol"
Expand Down

0 comments on commit 04f599b

Please sign in to comment.