From 5588647ad28ea51682fafab50b95ae9f161d18fe Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 24 Nov 2022 09:06:49 +0100 Subject: [PATCH] tests/misc/cexample_module: Test class presence. 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 --- tests/misc/cexample_module.py | 2 ++ tests/misc/cexample_module.py.exp | 1 + 2 files changed, 3 insertions(+) diff --git a/tests/misc/cexample_module.py b/tests/misc/cexample_module.py index cf1d46f750..c1da2ecf7a 100644 --- a/tests/misc/cexample_module.py +++ b/tests/misc/cexample_module.py @@ -7,8 +7,10 @@ except ImportError: raise SystemExit print(cexample) +print(cexample.__name__) d = dir(cexample) d.index("add_ints") +d.index("Timer") print(cexample.add_ints(1, 3)) diff --git a/tests/misc/cexample_module.py.exp b/tests/misc/cexample_module.py.exp index 81fcc2f2dd..bb305060e9 100644 --- a/tests/misc/cexample_module.py.exp +++ b/tests/misc/cexample_module.py.exp @@ -1,2 +1,3 @@ +cexample 4