Commits

Mike Bayer  committed 8e8d1ce

fix to __eq__ method in a test object

  • Participants
  • Parent commits 0821466

Comments (0)

Files changed (1)

File test/orm/objectstore.py

             def __init__(self, name):
                 self.name = name
             def __eq__(self, other):
-                return other.name == self.name
+                return other.__class__ == Keyword and other.name == self.name
             def __repr__(self):
                 return "Keyword(%s, %s)" % (getattr(self, 'keyword_id', 'None'), self.name)