summaryrefslogtreecommitdiff
path: root/tests/basics/subclass-native3.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-04-30 23:34:25 +0100
committerDamien George <damien.p.george@gmail.com>2014-04-30 23:34:25 +0100
commitdddf5bd3307807dab6b88a0f211ee0a45cae7c50 (patch)
tree83e591f365c0ebf0716e134ad1bc2af1b2b4f732 /tests/basics/subclass-native3.py
parentf4b7e9bd2e72ac040cb242617e08808bbc0d120a (diff)
parent37977b7b27a293aa6ae10726203d81aa0f074566 (diff)
Merge branch 'master' of github.com:micropython/micropython
Diffstat (limited to 'tests/basics/subclass-native3.py')
-rw-r--r--tests/basics/subclass-native3.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/basics/subclass-native3.py b/tests/basics/subclass-native3.py
new file mode 100644
index 000000000..5d443cf5c
--- /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)