Improve raise contains mocks (#105078)
Co-authored-by: J. Nick Koston <nick@koston.org>pull/105099/head
parent
d4cbe89c2f
commit
1edfaed7be
|
@ -1427,7 +1427,7 @@ ANY = _HA_ANY()
|
|||
def raise_contains_mocks(val: Any) -> None:
|
||||
"""Raise for mocks."""
|
||||
if isinstance(val, Mock):
|
||||
raise TypeError
|
||||
raise TypeError(val)
|
||||
|
||||
if isinstance(val, dict):
|
||||
for dict_value in val.values():
|
||||
|
|
Loading…
Reference in New Issue