From: Mike Bayer Date: Sat, 28 Jan 2012 21:04:38 +0000 (-0500) Subject: another py3k fix X-Git-Tag: rel_0_7_5~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e56ff1a44f4d9783dbde5b56cb383a0a4d6c71b;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git another py3k fix --- diff --git a/test/ext/test_mutable.py b/test/ext/test_mutable.py index 60576f0078..c345d8fe38 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