tests: Add test for accessing attribute of inherited native type.

This commit is contained in:
Paul Sokolovsky 2014-04-29 03:28:31 +03:00
parent 443857de98
commit 5a12137c3e
1 changed files with 8 additions and 0 deletions

View File

@ -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)