diff --git a/tests/misc/cexample_module.py b/tests/misc/cexample_module.py new file mode 100644 index 0000000000000..cf1d46f7509e5 --- /dev/null +++ b/tests/misc/cexample_module.py @@ -0,0 +1,14 @@ +# 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)) diff --git a/tests/misc/cexample_module.py.exp b/tests/misc/cexample_module.py.exp new file mode 100644 index 0000000000000..81fcc2f2dda80 --- /dev/null +++ b/tests/misc/cexample_module.py.exp @@ -0,0 +1,2 @@ + +4 diff --git a/tests/unix/extra_coverage.py b/tests/unix/extra_coverage.py index 00226a68e6010..a51b5b856a271 100644 --- a/tests/unix/extra_coverage.py +++ b/tests/unix/extra_coverage.py @@ -49,11 +49,6 @@ # function defined in C++ code print("cpp", extra_cpp_coverage()) -# test user C module -import cexample - -print(cexample.add_ints(3, 2)) - # test user C module mixed with C++ code import cppexample diff --git a/tests/unix/extra_coverage.py.exp b/tests/unix/extra_coverage.py.exp index 2f5409b85b45f..2f8e37c5feeea 100644 --- a/tests/unix/extra_coverage.py.exp +++ b/tests/unix/extra_coverage.py.exp @@ -179,7 +179,6 @@ OSError None None cpp None -5 (3, 'hellocpp') frzstr1 frzstr1.py 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