From 5a12137c3e766451d83e6598ba93d16e0a8cbde8 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 29 Apr 2014 03:28:31 +0300 Subject: [PATCH] tests: Add test for accessing attribute of inherited native type. --- tests/basics/subclass-native3.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/basics/subclass-native3.py diff --git a/tests/basics/subclass-native3.py b/tests/basics/subclass-native3.py new file mode 100644 index 0000000000..5d443cf5cd --- /dev/null +++ b/tests/basics/subclass-native3.py @@ -0,0 +1,8 @@ +class MyExc(Exception): + pass + +e = MyExc(100, "Some error") +print(e) +# TODO: Prints native base class name +#print(repr(e)) +print(e.args)