From b8e373e7d1b09fa176859f47ad18f4cba947478a Mon Sep 17 00:00:00 2001 From: Bryna Hazelton Date: Fri, 9 Feb 2024 15:36:21 -0800 Subject: [PATCH] try again to fix test in windows --- tests/test_skymodel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_skymodel.py b/tests/test_skymodel.py index c94f7d9a..68cf72f7 100644 --- a/tests/test_skymodel.py +++ b/tests/test_skymodel.py @@ -3045,9 +3045,7 @@ def test_fhd_catalog_reader_labeling_extended_sources(): def test_fhd_catalog_reader_errors(): catfile = os.path.join(SKY_DATA_PATH, "fhd_catalog_bad.sav") - with pytest.raises( - KeyError, match=f"File {catfile} does not contain a known catalog name. " - ): + with pytest.raises(KeyError, match="does not contain a known catalog name. "): SkyModel.from_fhd_catalog(catfile)