summaryrefslogtreecommitdiff
path: root/silx/math/fit/test
diff options
context:
space:
mode:
Diffstat (limited to 'silx/math/fit/test')
-rw-r--r--silx/math/fit/test/test_fit.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/silx/math/fit/test/test_fit.py b/silx/math/fit/test/test_fit.py
index 4d159c0..11b53cd 100644
--- a/silx/math/fit/test/test_fit.py
+++ b/silx/math/fit/test/test_fit.py
@@ -30,6 +30,9 @@ import unittest
import numpy
import sys
+from silx.test import utils
+from silx.math.fit.leastsq import _logger as fitlogger
+
class Test_leastsq(unittest.TestCase):
"""
@@ -238,6 +241,7 @@ class Test_leastsq(unittest.TestCase):
fittedpar[i])
self.assertTrue(test_condition, msg)
+ @utils.test_logging(fitlogger.name, warning=2)
def testBadlyShapedData(self):
parameters_actual = [10.5, 2, 1000.0, 20., 15]
x = numpy.arange(10000.).reshape(1000, 10)
@@ -259,6 +263,7 @@ class Test_leastsq(unittest.TestCase):
fittedpar[i])
self.assertTrue(test_condition, msg)
+ @utils.test_logging(fitlogger.name, warning=3)
def testDataWithNaN(self):
parameters_actual = [10.5, 2, 1000.0, 20., 15]
x = numpy.arange(10000.).reshape(1000, 10)