Ionut Turturica added the comment:
I keep trying to repro this on a smaller scale TestSuite but without any
success. The whole test framework has around 300 tests and I can't
really upload it.
In the mean time I changed the TestSuite's __eq__ back to identity.
I will attach the _breadth_first(
R. David Murray added the comment:
At a guess, because equality is not the same as identity. (If identity
was the requirement for equality for this class, the method body would
_just_ be self is other).
You should open a new bug report explaining the problem you are seeing
in more detail, with
Ionut Turturica added the comment:
I am a little bit concerned with the new __eq__:
def __eq__(self, other):
if type(self) is not type(other):
return False
return self._tests == other._tests
Why did you use "self._tests == other._tests" instead of "self is other