diff options
| author | Andrew McNulty <amcn102@gmail.com> | 2024-05-08 14:51:25 +0200 |
|---|---|---|
| committer | Andrew McNulty <amcn102@gmail.com> | 2024-06-11 19:47:31 +0200 |
| commit | d1abdce88fa263b6e532901564e44ca510df1065 (patch) | |
| tree | 30e7de1076b4fd147c0b2d8bec666ed0f5aebdba /test cases/python/9 extmodule limited api/test_limited.py | |
| parent | 141100e482e440dd08ea8b5b042927cac968f112 (diff) | |
| download | meson-d1abdce88fa263b6e532901564e44ca510df1065.tar.gz | |
Python: add load test to limited API test
Based on the example in GH issue #13167, the limited API test has been
extended with a test to load the compiled module to ensure it can be
loaded correctly.
Diffstat (limited to 'test cases/python/9 extmodule limited api/test_limited.py')
| -rw-r--r-- | test cases/python/9 extmodule limited api/test_limited.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test cases/python/9 extmodule limited api/test_limited.py b/test cases/python/9 extmodule limited api/test_limited.py new file mode 100644 index 000000000..fcbf67b53 --- /dev/null +++ b/test cases/python/9 extmodule limited api/test_limited.py @@ -0,0 +1,6 @@ +from limited import hello + +def test_hello(): + assert hello() == "hello world" + +test_hello() |
