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>
This commit is contained in:
Damien George 2023-06-01 12:33:23 +10:00
parent 1f60841123
commit 3ae78e803b
2 changed files with 0 additions and 12 deletions

View File

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

View File

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