tests: Add test for accessing attribute of inherited native type.
This commit is contained in:
parent
443857de98
commit
5a12137c3e
8
tests/basics/subclass-native3.py
Normal file
8
tests/basics/subclass-native3.py
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user