tests/basics: Enable == and != special-method tests now that they work.

These work since 3aab54bf43

Signed-off-by: Damien George <damien@micropython.org>
pull/6454/head
Damien George 2020-09-17 13:26:24 +10:00
rodzic 8af9796b16
commit c410a86814
2 zmienionych plików z 4 dodań i 9 usunięć

Wyświetl plik

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

Wyświetl plik

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