diff options
Diffstat (limited to 'Lib/test/test_array.py')
-rw-r--r-- | Lib/test/test_array.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_array.py b/Lib/test/test_array.py index 7f402f86447..2399980d134 100644 --- a/Lib/test/test_array.py +++ b/Lib/test/test_array.py @@ -1242,6 +1242,8 @@ class IntegerNumberTest(NumberTest): class Intable: def __init__(self, num): self._num = num + def __index__(self): + return self._num def __int__(self): return self._num def __sub__(self, other): |