summaryrefslogtreecommitdiff
path: root/Lib/test/test_index.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_index.py')
-rw-r--r--Lib/test/test_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_index.py b/Lib/test/test_index.py
index a2ac32132e..cbdc56c801 100644
--- a/Lib/test/test_index.py
+++ b/Lib/test/test_index.py
@@ -60,7 +60,7 @@ class BaseTestCase(unittest.TestCase):
# subclasses. See issue #17576.
class MyInt(int):
def __index__(self):
- return int(self) + 1
+ return int(str(self)) + 1
my_int = MyInt(7)
direct_index = my_int.__index__()