From 55b35ddcf8ead09f7f910953dea5bf0b0885fd9d Mon Sep 17 00:00:00 2001 From: bnavigator Date: Wed, 13 May 2020 23:26:07 +0200 Subject: [PATCH] change test matrix for mb05md --- slycot/tests/test_mb.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/slycot/tests/test_mb.py b/slycot/tests/test_mb.py index f426dcc3..88b883d0 100755 --- a/slycot/tests/test_mb.py +++ b/slycot/tests/test_mb.py @@ -268,12 +268,9 @@ def test_mb05md(self): # TODO: move this to pytest recwarn together with the whole class @unittest.skipIf(sys.version < "3", "no assertWarns in old Python") def test_mb05md_warning(self): - """ Check that the correct warning is raised from docstring""" - A = np.array([[5, 4, 2, 1], - [0, 1, -1, -1], - [-1, -1, 3, 0], - [1, 1, -1, 2]]) - delta = 0. + """Check that the correct warning is raised from docstring""" + A = np.diag([3., 3., 3., 3.]) + np.diag([1., 1., 1.], k=1) + delta = 0.1 with self.assertWarns(SlycotResultWarning, msg="\n"