summaryrefslogtreecommitdiff
path: root/test/ext/test_mutable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 16:04:38 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2012-01-28 16:04:38 -0500
commit9e56ff1a44f4d9783dbde5b56cb383a0a4d6c71b (patch)
treed1c720e4c3117c22832800736596c38add2b8d7a /test/ext/test_mutable.py
parentdbd46170fb2751084d3de09d5a78e5802a839bf2 (diff)
downloadsqlalchemy-9e56ff1a44f4d9783dbde5b56cb383a0a4d6c71b.tar.gz
another py3k fix
Diffstat (limited to 'test/ext/test_mutable.py')
-rw-r--r--test/ext/test_mutable.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ext/test_mutable.py b/test/ext/test_mutable.py
index 60576f007..c345d8fe3 100644
--- a/test/ext/test_mutable.py
+++ b/test/ext/test_mutable.py
@@ -21,6 +21,10 @@ class FooWithEq(object):
def __init__(self, **kw):
for k in kw:
setattr(self, k, kw[k])
+
+ def __hash__(self):
+ return hash(self.id)
+
def __eq__(self, other):
return self.id == other.id