Skip to content

Commit c963310

Browse files
committed
tests: Add test for calling inherited native method on subclass.
1 parent 7f0419c commit c963310

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

tests/basics/subclass-native4.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Test calling non-special method inherited from native type
2+
3+
class mylist(list):
4+
pass
5+
6+
l = mylist([1, 2, 3])
7+
print(l)
8+
l.append(10)
9+
print(l)

0 commit comments

Comments
 (0)