Skip to content

Commit 560bbe6

Browse files
committed
tests/misc: Add test for cexample module.
Signed-off-by: Laurens Valk <laurens@pybricks.com>
1 parent ac5934c commit 560bbe6

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/misc/cexample_module.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# test custom builtin module
2+
3+
try:
4+
import cexample
5+
except ImportError:
6+
print("SKIP")
7+
raise SystemExit
8+
9+
print(cexample)
10+
11+
d = dir(cexample)
12+
d.index("add_ints")
13+
14+
print(cexample.add_ints(1, 3))

tests/misc/cexample_module.py.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<module 'cexample'>
2+
4

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy