Skip to content

Commit c2b0039

Browse files
committed
update slice_bits test to use IndexError
1 parent 8f32178 commit c2b0039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/python/primitives/containers/test_bit_array.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -557,9 +557,9 @@ def test_slice_bits(self):
557557
self.assertEqual(ba2.get_counts((i, j, k)), expect)
558558

559559
with self.subTest("errors"):
560-
with self.assertRaisesRegex(ValueError, "index -1 is out of bounds"):
560+
with self.assertRaisesRegex(IndexError, "index -1 is out of bounds"):
561561
_ = ba.slice_bits(-1)
562-
with self.assertRaisesRegex(ValueError, "index 9 is out of bounds"):
562+
with self.assertRaisesRegex(IndexError, "index 9 is out of bounds"):
563563
_ = ba.slice_bits(9)
564564

565565
def test_slice_shots(self):

0 commit comments

Comments
 (0)