From 04f599bc12037d2712bc379cb70c0bf997b3cf13 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Sat, 12 Oct 2024 23:35:30 +0100 Subject: [PATCH] nocover --- tests/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compat.py b/tests/compat.py index 64bc549..745143f 100644 --- a/tests/compat.py +++ b/tests/compat.py @@ -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"