Files
Pierre-Marie de Rodat a5bf08a3a7 stylechecks: enforce two empty lines after imports
TN: S819-013
2019-08-20 14:34:45 +02:00

23 lines
493 B
Python

from __future__ import absolute_import, division, print_function
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.')