match tuple for targets as well

Fixes #46826
This commit is contained in:
Daniel Wallace 2018-04-03 09:55:04 -05:00
parent 307e7f35f9
commit 3b7208ce27
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -1586,7 +1586,7 @@ def subdict_match(data,
exact_match=exact_match):
return True
continue
if isinstance(match, list):
if isinstance(match, (list, tuple)):
# We are matching a single component to a single list member
for member in match:
if isinstance(member, dict):