diff --git a/bson/son.py b/bson/son.py index aa73274f6..c171437ab 100644 --- a/bson/son.py +++ b/bson/son.py @@ -211,7 +211,7 @@ class SON(dict): """ if isinstance(other, SON): return len(self) == len(other) and self.items() == other.items() - return dict.__eq__(self, other) + return self.to_dict() == other def __ne__(self, other): return not self == other