From 586599b39a8269b191e297ee9aba7b07951f240f Mon Sep 17 00:00:00 2001 From: Robert Jedrzejewski Date: Wed, 28 Jun 2023 09:31:50 -0400 Subject: [PATCH] Fix problem from formerly deprecated numpy behaviour now raising exception (#228) --- tests/test_cosutil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_cosutil.py b/tests/test_cosutil.py index ffdedce..baf365d 100644 --- a/tests/test_cosutil.py +++ b/tests/test_cosutil.py @@ -46,7 +46,7 @@ def test_get_table_exceptions(): name = "getTable.fits" generate_fits_file(name) # truth = [tuple(ofd[1].data[3])] - t = np.ones(5) # non-existent values + t = 1.0 # non-existent value with pytest.raises(MissingRowError): cosutil.getTable(name, {'Time': t}, exactly_one=True) # Cleanup