Skip to content

Commit 2cb8f7b

Browse files
committed
Add test for issue #2465 - tuple subsclass subscript
1 parent d7c6d9c commit 2cb8f7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/basics/subscr_tuple.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# subscripting a subclassed tuple
2+
class Foo(tuple):
3+
pass
4+
5+
foo = Foo((1,2))
6+
foo[0]
7+

0 commit comments

Comments
 (0)