From 1c73d2936762cb52d3b9945af68d0a09836fca09 Mon Sep 17 00:00:00 2001
From: Aditya Vijaykumar <vijaykumar.aditya@gmail.com>
Date: Tue, 17 May 2022 12:01:09 +0530
Subject: [PATCH] solving tests

---
 test/gw/source_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/gw/source_test.py b/test/gw/source_test.py
index f3fcc1201..1a85a52d0 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
             )
-- 
GitLab