tests/basics: Enable == and != special-method tests now that they work.
These work since 3aab54bf43
Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
parent
8af9796b16
commit
c410a86814
|
@ -100,6 +100,10 @@ cud1 = Cud()
|
|||
cud2 = Cud()
|
||||
|
||||
str(cud1)
|
||||
cud1 == cud1
|
||||
cud1 == cud2
|
||||
cud1 != cud1
|
||||
cud1 != cud2
|
||||
cud1 < cud2
|
||||
cud1 <= cud2
|
||||
cud1 == cud2
|
||||
|
|
|
@ -129,12 +129,3 @@ print(dir(cud1))
|
|||
|
||||
# test that dir() does not delegate to __dir__ for the type
|
||||
print('a' in dir(Cud))
|
||||
|
||||
# TODO: the following operations are not supported on every ports
|
||||
#
|
||||
# ne is not supported, !(eq) is called instead
|
||||
#cud1 != cud2
|
||||
#
|
||||
# in the following test, cpython still calls __eq__
|
||||
# cud3=cud1
|
||||
# cud3==cud1
|
||||
|
|
Loading…
Reference in New Issue