Files
Pierre-Marie de Rodat 2b9b33d6a0 Remove __future__ imports and adjust stylechecks
TN: T511-017
2020-05-26 12:33:48 +02:00

21 lines
427 B
Python

import libfoolang
print('main.py: Running...')
for args, kwargs in [
([], {}),
(['hello'], {}),
([], {'hello': 'world'}),
]:
print('Trying to call with {} and {}...'.format(args, kwargs))
try:
libfoolang._get_last_exception(*args, **kwargs)
except TypeError as exc:
print(' Got a TypeError exception: {}'.format(exc))
else:
print(' Success')
print('main.py: Done.')