Use sets to compare dictionary keys.

This commit is contained in:
Kale Kundert 2017-06-16 08:25:13 -07:00
parent d6000e5ab1
commit 9597e674d9
No known key found for this signature in database
GPG Key ID: C6238221D17CAFAE
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class ApproxMapping(ApproxBase):
for k,v in self.expected.items()))
def __eq__(self, actual):
if actual.keys() != self.expected.keys():
if set(actual.keys()) != set(self.expected.keys()):
return False
return ApproxBase.__eq__(self, actual)