diff --git a/test/gw/source_test.py b/test/gw/source_test.py index f3fcc12017f2c36caf776ca5704401ab9988b87b..1a85a52d0a1c1e2c104c0a1d25a5df4f531bdc69 100644 --- a/test/gw/source_test.py +++ b/test/gw/source_test.py @@ -517,7 +517,7 @@ class TestRelbinBBH(unittest.TestCase): ) def test_relbin_bbh_fails_without_fiducial_option(self): - with self.assertRaises(KeyError): + with self.assertRaises(TypeError): bilby.gw.source.lal_binary_black_hole_relativebinning( self.frequency_array, **self.parameters ) @@ -593,7 +593,7 @@ class TestRelbinBNS(unittest.TestCase): ) def test_relbin_bns_fails_without_fiducial_option(self): - with self.assertRaises(KeyError): + with self.assertRaises(TypeError): bilby.gw.source.lal_binary_neutron_star_relativebinning( self.frequency_array, **self.parameters )