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:
parent
1f60841123
commit
3ae78e803b
|
@ -37,12 +37,6 @@ class Cud():
|
||||||
def __floordiv__(self, other):
|
def __floordiv__(self, other):
|
||||||
print("__floordiv__ called")
|
print("__floordiv__ called")
|
||||||
|
|
||||||
def __index__(self, other):
|
|
||||||
print("__index__ called")
|
|
||||||
|
|
||||||
def __inv__(self):
|
|
||||||
print("__inv__ called")
|
|
||||||
|
|
||||||
def __invert__(self):
|
def __invert__(self):
|
||||||
print("__invert__ called")
|
print("__invert__ called")
|
||||||
|
|
||||||
|
|
|
@ -38,12 +38,6 @@ class Cud():
|
||||||
def __floordiv__(self, other):
|
def __floordiv__(self, other):
|
||||||
print("__floordiv__ called")
|
print("__floordiv__ called")
|
||||||
|
|
||||||
def __index__(self, other):
|
|
||||||
print("__index__ called")
|
|
||||||
|
|
||||||
def __inv__(self):
|
|
||||||
print("__inv__ called")
|
|
||||||
|
|
||||||
def __invert__(self):
|
def __invert__(self):
|
||||||
print("__invert__ called")
|
print("__invert__ called")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue