We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d75f49c commit 1d27c7dCopy full SHA for 1d27c7d
4 files changed
tests/misc/cexample_module.py
@@ -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
@@ -0,0 +1,2 @@
+<module 'cexample'>
+4
tests/unix/extra_coverage.py
@@ -49,11 +49,6 @@
49
# function defined in C++ code
50
print("cpp", extra_cpp_coverage())
51
52
-# test user C module
53
-import cexample
54
-
55
-print(cexample.add_ints(3, 2))
56
57
# test user C module mixed with C++ code
58
import cppexample
59
tests/unix/extra_coverage.py.exp
@@ -179,7 +179,6 @@ OSError
179
None
180
181
cpp None
182
-5
183
(3, 'hellocpp')
184
frzstr1
185
frzstr1.py
0 commit comments