From c45c50cf1727a8b307aafde9497c888018d4cde5 Mon Sep 17 00:00:00 2001 From: yoonthegoon <71526721+yoonthegoon@users.noreply.github.com> Date: Wed, 19 Jul 2023 12:08:58 -0400 Subject: [PATCH] fix test_get IndexError --- tests/test_tablib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_tablib.py b/tests/test_tablib.py index 908a005b..eeb4dd3b 100755 --- a/tests/test_tablib.py +++ b/tests/test_tablib.py @@ -206,7 +206,8 @@ def test_get(self): self.assertEqual(self.founders.get(-2), self.george) self.assertEqual(self.founders.get(-3), self.john) - self.assertRaises(self.founders.get(3), IndexError) + with self.assertRaises(IndexError): + self.founders.get(3) def test_get_col(self): """Verify getting columns by index"""