From 429989b13c65e705082d18837d717c7ac79e345c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20van=20Paassen?= Date: Mon, 11 May 2020 19:45:59 +0200 Subject: [PATCH] add more tests of the exception messages --- slycot/analysis.py | 2 +- slycot/synthesis.py | 2 +- slycot/tests/CMakeLists.txt | 2 ++ slycot/tests/test_analysis.py | 44 ++++++++++++++++++++++++++++++++++ slycot/tests/test_mb.py | 17 ++++++++++++- slycot/tests/test_transform.py | 21 ++++++++++++++++ 6 files changed, 85 insertions(+), 3 deletions(-) create mode 100755 slycot/tests/test_analysis.py create mode 100755 slycot/tests/test_transform.py diff --git a/slycot/analysis.py b/slycot/analysis.py index aacc0c8f..4ae19b27 100644 --- a/slycot/analysis.py +++ b/slycot/analysis.py @@ -1620,7 +1620,7 @@ def ab13fd(n, A, tol = 0.0): 'dwork' + hidden, 'ldwork' + hidden, 'cwork' + hidden, 'lcwork' + hidden, 'info' + hidden] out = _wrapper.ab13fd(n, A, tol) - raise_if_slycot_error(out[-1], arg_list, ab13fd.__dict__) + raise_if_slycot_error(out[-1], arg_list, ab13fd.__doc__) return out[0], out[1] def ag08bd(l,n,m,p,A,E,B,C,D,equil='N',tol=0.0,ldwork=None): diff --git a/slycot/synthesis.py b/slycot/synthesis.py index f00281fd..cfbc6cba 100644 --- a/slycot/synthesis.py +++ b/slycot/synthesis.py @@ -1904,7 +1904,7 @@ def sg03ad(dico,job,fact,trans,uplo,N,A,E,Q,Z,X,ldwork=None): out = _wrapper.sg03ad(dico,job,fact,trans,uplo,N,A,E,Q,Z,X,ldwork) - raise_if_slycot_error(out[-1], arg_list, sg03ad.__dict__) + raise_if_slycot_error(out[-1], arg_list, sg03ad.__doc__) return out[:-1] diff --git a/slycot/tests/CMakeLists.txt b/slycot/tests/CMakeLists.txt index cdf3d65f..55aee8df 100644 --- a/slycot/tests/CMakeLists.txt +++ b/slycot/tests/CMakeLists.txt @@ -8,6 +8,8 @@ set(PYSOURCE test_mb.py test_mc.py test_sb.py + test_analysis.py + test_transform.py test_sg02ad.py test_sg03ad.py test_tb05ad.py diff --git a/slycot/tests/test_analysis.py b/slycot/tests/test_analysis.py new file mode 100755 index 00000000..f7577791 --- /dev/null +++ b/slycot/tests/test_analysis.py @@ -0,0 +1,44 @@ +#!/usr/bin/env python +# +# test_ab.py - generic tests for analysis programs +# repagh