Browse Source

add pragma no cover

pull/15101/head
svlandeg 4 months ago
parent
commit
53a6ee4186
  1. 2
      tests/test_jsonable_encoder.py

2
tests/test_jsonable_encoder.py

@ -324,7 +324,7 @@ def test_encode_pydantic_undefined():
def test_encode_color(module_path): def test_encode_color(module_path):
try: try:
Color = __import__(module_path, fromlist=["Color"]).Color Color = __import__(module_path, fromlist=["Color"]).Color
except ImportError: except ImportError: # pragma: no cover
pytest.skip(f"{module_path} not available") pytest.skip(f"{module_path} not available")
data = {"color": Color("blue")} data = {"color": Color("blue")}

Loading…
Cancel
Save