diff mbox series

[2/2] support/testing: test_python_scipy

Message ID 20220802173330.15176-2-guillaume.bressaix@gmail.com
State Accepted
Headers show
Series [1/2] package/python-scipy: fix io runtime dependency | expand

Commit Message

Guillaume Bres Aug. 2, 2022, 5:33 p.m. UTC
Test io module, to demonstrate the runtime dependency is correctly matched

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
---
 support/testing/tests/package/sample_python_scipy.py | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/support/testing/tests/package/sample_python_scipy.py b/support/testing/tests/package/sample_python_scipy.py
index df0c7ce5fe..d36f2273e7 100644
--- a/support/testing/tests/package/sample_python_scipy.py
+++ b/support/testing/tests/package/sample_python_scipy.py
@@ -1,4 +1,5 @@ 
 import numpy
+import scipy.io
 import scipy.special
 import scipy.integrate
 
@@ -10,3 +11,6 @@  assert(com == 15.0)
 
 t = scipy.integrate.trapezoid([5,8,10])
 assert(t == 15.5)
+
+mdic = {"t": t, "label": "example"}
+scipy.io.savemat("example.mat", mdic)