On Sat, 3 Nov 2012 10:59:23 +0100 Stefan Krah <[email protected]> wrote: > Nick Coghlan <[email protected]> wrote: > > > + if (b == c): > > > + self.assertEqual(hash(b), hash(c)) > > > > These checks could do with a comment explaining why the if statements > > are needed (I'm assuming something to do with memory order). > > The checks aren't needed; they were supposed to spell out the equality-hash > relationship.
Better use assertEqual(), then. Regards Antoine. _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
