Skip to content

Commit

Permalink
fix test_get IndexError
Browse files Browse the repository at this point in the history
  • Loading branch information
yoonthegoon committed Jul 19, 2023
1 parent 43b9767 commit c45c50c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tablib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit c45c50c

Please sign in to comment.