diff --git a/wetb/hawc2/tests/test_compare_test_cases.py b/wetb/hawc2/tests/test_compare_test_cases.py index 4d6118cb3ab4e7b581ecbaf187ee1110f40e3d33..e77728c20626679d7efe83e98ddd2283f76e979b 100644 --- a/wetb/hawc2/tests/test_compare_test_cases.py +++ b/wetb/hawc2/tests/test_compare_test_cases.py @@ -20,7 +20,7 @@ class TestCmpTestCases(CompareTestCases): self.compare_sel(self.ref_path + 'test1.sel', self.test_path + 'test1.sel') def test_compare_sel_different_number_of_lines(self): - self.assertRaisesRegex(AssertionError, "16 != 15 : \nNumber of lines differs in", self.compare_sel, self.ref_path + 'test2.sel', self.test_path + 'test2.sel') + self.assertRaises(AssertionError, self.compare_sel, self.ref_path + 'test2.sel', self.test_path + 'test2.sel') def test_compare_sel_different_header(self): self.compare_sel(self.ref_path + 'test3.sel', self.test_path + 'test3.sel')