From 3ae78e803b69c4f1fd5dfe7eb732de7075f12e6c Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Jun 2023 12:33:23 +1000 Subject: [PATCH] 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 --- tests/basics/special_methods.py | 6 ------ tests/basics/special_methods2.py | 6 ------ 2 files changed, 12 deletions(-) diff --git a/tests/basics/special_methods.py b/tests/basics/special_methods.py index d8af8e0797..fc3d9dd768 100644 --- a/tests/basics/special_methods.py +++ b/tests/basics/special_methods.py @@ -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") diff --git a/tests/basics/special_methods2.py b/tests/basics/special_methods2.py index 31f330ab42..8a47690b2e 100644 --- a/tests/basics/special_methods2.py +++ b/tests/basics/special_methods2.py @@ -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")