This also moves the existing test for cexample.add_ints originally done in extra_coverage. Signed-off-by: Laurens Valk <laurens@pybricks.com>
15 lines
202 B
Python
15 lines
202 B
Python
# test custom builtin module
|
|
|
|
try:
|
|
import cexample
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
print(cexample)
|
|
|
|
d = dir(cexample)
|
|
d.index("add_ints")
|
|
|
|
print(cexample.add_ints(1, 3))
|