summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binop.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-01-26 08:04:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-01-26 08:04:15 (GMT)
commit34af5023fc1e74c2d6a7537a11148885c84d9cb4 (patch)
tree7d0798f2543f647ac94acef12bd9ebc71fe6dd29 /Lib/test/test_binop.py
parent4e1942bcd8a3904047bf96a16305f0e1e4736b5c (diff)
parentf4b7a02e932671c6e54e6b48340173cc859ab4c0 (diff)
downloadcpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.zip
cpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.tar.gz
cpython-34af5023fc1e74c2d6a7537a11148885c84d9cb4.tar.bz2
Issue #21408: The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
Diffstat (limited to 'Lib/test/test_binop.py')
-rw-r--r--Lib/test/test_binop.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/test/test_binop.py b/Lib/test/test_binop.py
index 8417916..9c4c18e 100644
--- a/Lib/test/test_binop.py
+++ b/Lib/test/test_binop.py
@@ -194,10 +194,6 @@ class Rat(object):
return float(self) == other
return NotImplemented
- def __ne__(self, other):
- """Compare two Rats for inequality."""
- return not self == other
-
class RatTestCase(unittest.TestCase):
"""Unit tests for Rat class and its support utilities."""