From 539681fffd96082ca3b5d18643d4f08f65c47170 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 5 Jul 2014 06:14:29 +0100 Subject: tests: Rename test scripts, changing - to _ for consistency. From now on, all new tests must use underscore. Addresses issue #727. --- tests/basics/subclass_native4.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/basics/subclass_native4.py (limited to '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) -- cgit v1.2.3