Index: Misc/ACKS =================================================================== --- Misc/ACKS (revision 88262) +++ Misc/ACKS (working copy) @@ -957,3 +957,4 @@ Kai Zhu Tarek Ziadé Peter Åstrand +Cédric Krier Index: Lib/doctest.py =================================================================== --- Lib/doctest.py (revision 88262) +++ Lib/doctest.py (working copy) @@ -2199,6 +2199,16 @@ def id(self): return self._dt_test.name + def __eq__(self, other): + if type(self) is not type(other): + return NotImplemented + + return hash(self) == hash(other) + + def __hash__(self): + return hash((type(self), self._dt_test, self._dt_optionflags, + self._dt_setUp, self._dt_tearDown, self._dt_checker)) + def __repr__(self): name = self._dt_test.name.split('.') return "%s (%s)" % (name[-1], '.'.join(name[:-1]))