From 9aba09e96cf5f242224ac3c9a3f8a0810a2dffcb Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Mon, 6 Dec 2021 12:47:51 -0500 Subject: [PATCH 1/4] ignore deprecation warning that comes from PyTables --- testr/runner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/testr/runner.py b/testr/runner.py index 159efb5..ffea885 100644 --- a/testr/runner.py +++ b/testr/runner.py @@ -21,7 +21,11 @@ '-Wignore:parse functions are required to provide a named:PendingDeprecationWarning', # Shows up in sparkles from importing bleach - '-Wignore:Using or importing the ABCs:DeprecationWarning') + '-Wignore:Using or importing the ABCs:DeprecationWarning', + + # Shows up in several places from importing PyTables + '-Wignore:`np.object` is a deprecated alias for the builtin `object`', + ) class TestError(Exception): From 258bd2fa09761013405ebdab0910210efec4152e Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 20 Jan 2022 10:08:30 -0500 Subject: [PATCH 2/4] added a few other warnings that showed up with newer versions of packages --- testr/runner.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/testr/runner.py b/testr/runner.py index ffea885..5cf5d08 100644 --- a/testr/runner.py +++ b/testr/runner.py @@ -25,6 +25,24 @@ # Shows up in several places from importing PyTables '-Wignore:`np.object` is a deprecated alias for the builtin `object`', + + # This warning comes about when running with the latest version MarksupSafe (>=2.0) but an old version of Jinja2<3.0. + "-Wignore: 'soft_unicode' has been renamed to 'soft_str'", + + # acis_thermal_check/utils.py:164 + # acis_thermal_check/utils.py:269 + # acis_thermal_check/utils.py:290 + # acis_thermal_check/utils.py:272 + # Ska/Matplotlib/core.py:145 + "-Wignore: linestyle is redundantly defined by the 'linestyle' keyword", + + # annie/telem.py:18 + # (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. + "-Wignore: Creating an ndarray from ragged nested sequences", + + # proseco/report_acq.py:477 + # proseco/report_acq.py:480 + "-Wignore: FixedFormatter should only be used together with FixedLocator", ) From 31f59eae62a6dea8016c3aff3f3e2b49180737c3 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 20 Jan 2022 11:09:12 -0500 Subject: [PATCH 3/4] another matplotlib warning --- testr/runner.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/testr/runner.py b/testr/runner.py index 5cf5d08..3af67ce 100644 --- a/testr/runner.py +++ b/testr/runner.py @@ -34,7 +34,10 @@ # acis_thermal_check/utils.py:290 # acis_thermal_check/utils.py:272 # Ska/Matplotlib/core.py:145 - "-Wignore: linestyle is redundantly defined by the 'linestyle' keyword", + "-Wignore: linestyle is redundantly defined by the 'linestyle' keyword argument and the fmt string", + + # Ska/Matplotlib/core.py:145 + "-Wignore: color is redundantly defined by the 'color' keyword argument and the fmt string", # annie/telem.py:18 # (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. From f15adb6531a4add1557827e72ba489cde802e611 Mon Sep 17 00:00:00 2001 From: Javier Gonzalez Date: Thu, 20 Jan 2022 13:51:44 -0500 Subject: [PATCH 4/4] not ignoring some of these warnings because they should get fixed elsewhere --- testr/runner.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/testr/runner.py b/testr/runner.py index 3af67ce..0ce5e11 100644 --- a/testr/runner.py +++ b/testr/runner.py @@ -29,23 +29,9 @@ # This warning comes about when running with the latest version MarksupSafe (>=2.0) but an old version of Jinja2<3.0. "-Wignore: 'soft_unicode' has been renamed to 'soft_str'", - # acis_thermal_check/utils.py:164 - # acis_thermal_check/utils.py:269 - # acis_thermal_check/utils.py:290 - # acis_thermal_check/utils.py:272 - # Ska/Matplotlib/core.py:145 - "-Wignore: linestyle is redundantly defined by the 'linestyle' keyword argument and the fmt string", - - # Ska/Matplotlib/core.py:145 - "-Wignore: color is redundantly defined by the 'color' keyword argument and the fmt string", - # annie/telem.py:18 # (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray. "-Wignore: Creating an ndarray from ragged nested sequences", - - # proseco/report_acq.py:477 - # proseco/report_acq.py:480 - "-Wignore: FixedFormatter should only be used together with FixedLocator", )