Skip to content

Commit c410a86

Browse files
committed
tests/basics: Enable == and != special-method tests now that they work.
These work since 3aab54b Signed-off-by: Damien George <[email protected]>
1 parent 8af9796 commit c410a86

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

tests/basics/special_methods.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def __int__(self):
100100
cud2 = Cud()
101101

102102
str(cud1)
103+
cud1 == cud1
104+
cud1 == cud2
105+
cud1 != cud1
106+
cud1 != cud2
103107
cud1 < cud2
104108
cud1 <= cud2
105109
cud1 == cud2

tests/basics/special_methods2.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,3 @@ def __dir__(self):
129129

130130
# test that dir() does not delegate to __dir__ for the type
131131
print('a' in dir(Cud))
132-
133-
# TODO: the following operations are not supported on every ports
134-
#
135-
# ne is not supported, !(eq) is called instead
136-
#cud1 != cud2
137-
#
138-
# in the following test, cpython still calls __eq__
139-
# cud3=cud1
140-
# cud3==cud1

0 commit comments

Comments
 (0)