mirror of
https://github.com/micropython/micropython.git
synced 2026-01-10 05:57:16 +01:00
tests: Add test for calling inherited native method on subclass.
This commit is contained in:
9
tests/basics/subclass-native4.py
Normal file
9
tests/basics/subclass-native4.py
Normal 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)
|
||||
Reference in New Issue
Block a user