Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
c9633101
Commit
c9633101
authored
Apr 30, 2014
by
Paul Sokolovsky
Browse files
tests: Add test for calling inherited native method on subclass.
parent
7f0419c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/subclass-native4.py
0 → 100644
View file @
c9633101
# 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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment