From 08c78cf315d3770a1df30be58b9c246dfc67252a Mon Sep 17 00:00:00 2001 From: "Guillaume W. Bres" Date: Tue, 2 Aug 2022 19:33:30 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- support/testing/tests/package/sample_python_scipy.py | 4 ++++ 1 file changed, 4 insertions(+) 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)