Pārlūkot izejas kodu

support/testing/tests/test_python_scipy: add scipy::io module testing

Test the scipy::io module, to demonstrate that runtime dependencies
are correct.

Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Guillaume W. Bres 3 gadi atpakaļ
vecāks
revīzija
08c78cf315

+ 4 - 0
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)