tests: Add test for calling inherited native method on subclass.

This commit is contained in:
Paul Sokolovsky 2014-04-30 02:17:45 +03:00
parent 7f0419c0e5
commit c963310123
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# Test calling non-special method inherited from native type
class mylist(list):
pass
l = mylist([1, 2, 3])
print(l)
l.append(10)
print(l)