From c963310123765baddf638c8d08b8fdb2f73b6ba6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Wed, 30 Apr 2014 02:17:45 +0300 Subject: [PATCH] tests: Add test for calling inherited native method on subclass. --- tests/basics/subclass-native4.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/basics/subclass-native4.py diff --git a/tests/basics/subclass-native4.py b/tests/basics/subclass-native4.py new file mode 100644 index 0000000000..b426793f59 --- /dev/null +++ b/tests/basics/subclass-native4.py @@ -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)