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:
Damien George 2020-09-17 13:26:24 +10:00
parent 8af9796b16
commit c410a86814
2 changed files with 4 additions and 9 deletions

View File

@ -100,6 +100,10 @@ cud1 = Cud()
cud2 = Cud()
str(cud1)
cud1 == cud1
cud1 == cud2
cud1 != cud1
cud1 != cud2
cud1 < cud2
cud1 <= cud2
cud1 == cud2

View File

@ -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