Skip to content

Commit

Permalink
Use sets to compare dictionary keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
kalekundert committed Jun 16, 2017
1 parent d6000e5 commit 9597e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/python_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def __repr__(self):
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)
Expand Down

0 comments on commit 9597e67

Please sign in to comment.