tests/basics: Remove __index__ and __inv__ from special methods tests.

MicroPython does not support these special methods, and they may get in the
way of other tests (eg indexing with __int__).

Signed-off-by: Damien George <damien@micropython.org>
pull/11613/head
Damien George 2023-06-01 12:33:23 +10:00
rodzic 1f60841123
commit 3ae78e803b
2 zmienionych plików z 0 dodań i 12 usunięć

Wyświetl plik

@ -37,12 +37,6 @@ class Cud():
def __floordiv__(self, other):
print("__floordiv__ called")
def __index__(self, other):
print("__index__ called")
def __inv__(self):
print("__inv__ called")
def __invert__(self):
print("__invert__ called")

Wyświetl plik

@ -38,12 +38,6 @@ class Cud():
def __floordiv__(self, other):
print("__floordiv__ called")
def __index__(self, other):
print("__index__ called")
def __inv__(self):
print("__inv__ called")
def __invert__(self):
print("__invert__ called")