Issue #21408: The default __ne__() now returns NotImplemented if __eq__()

returned NotImplemented.  Removed incorrect implementations of __ne__().
This commit is contained in:
Serhiy Storchaka 2015-01-26 09:57:07 +02:00
parent 155ceaa454
commit f4b7a02e93
11 changed files with 77 additions and 47 deletions

View file

@ -31,9 +31,6 @@ class BaseTestSuite(object):
return NotImplemented
return list(self) == list(other)
def __ne__(self, other):
return not self == other
def __iter__(self):
return iter(self._tests)