lv_micropython/tests/basics/builtin_super.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
242 B
Python
Raw Permalink Normal View History

# Check that super rejects invalid arguments.
try:
super(str, 0)
except TypeError:
print("TypeError")
try:
super(str, int)
except TypeError:
print("TypeError")
try:
super(0, int)
except TypeError:
print("TypeError")