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

pull/528/head
Paul Sokolovsky 2014-04-29 03:28:31 +03:00
rodzic 443857de98
commit 5a12137c3e
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

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