From 53a6ee41862fccd7c51e9757626d2ff9646cad1f Mon Sep 17 00:00:00 2001 From: svlandeg Date: Tue, 17 Mar 2026 15:51:15 +0100 Subject: [PATCH] add pragma no cover --- tests/test_jsonable_encoder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_jsonable_encoder.py b/tests/test_jsonable_encoder.py index dfbf478c4d..c23a9e5d79 100644 --- a/tests/test_jsonable_encoder.py +++ b/tests/test_jsonable_encoder.py @@ -324,7 +324,7 @@ def test_encode_pydantic_undefined(): def test_encode_color(module_path): try: Color = __import__(module_path, fromlist=["Color"]).Color - except ImportError: + except ImportError: # pragma: no cover pytest.skip(f"{module_path} not available") data = {"color": Color("blue")}