Browse Source

Removed m

pull/14060/head
SaisakthiM 11 months ago
parent
commit
6361fb6e1d
  1. 2
      tests/test_color_compat.py

2
tests/test_color_compat.py

@ -12,6 +12,6 @@ class Model(pydantic.BaseModel):
def test_color_deprecation_warning():
with warnings.catch_warnings(record=True) as w:
warnings.simplefilter("always")
m = Model(c="#FF0000")
Model(c="#FF0000")
dep_warnings = [warn for warn in w if issubclass(warn.category, DeprecationWarning)]
assert len(dep_warnings) == 0, "DeprecationWarning raised! Fixed in this PR"

Loading…
Cancel
Save