5588647ad2
Now that the Timer class has been merged in a separate pull request, this can be added to the module test too. Signed-off-by: Laurens Valk <laurens@pybricks.com>
17 lines
244 B
Python
17 lines
244 B
Python
# test custom builtin module
|
|
|
|
try:
|
|
import cexample
|
|
except ImportError:
|
|
print("SKIP")
|
|
raise SystemExit
|
|
|
|
print(cexample)
|
|
print(cexample.__name__)
|
|
|
|
d = dir(cexample)
|
|
d.index("add_ints")
|
|
d.index("Timer")
|
|
|
|
print(cexample.add_ints(1, 3))
|