Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbynum committed Aug 9, 2023
1 parent 949a536 commit 7e6b844
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def test_min_max_with_size0_blocks(self):
self.assertEqual(v.min(), -np.inf)
self.assertEqual(v.max(), -np.inf)

v = MPIBlockVector(3, [0, 1, 2], comm)
v.set_block(rank, np.array([]))
with self.assertRaisesRegex(ValueError, 'cannot get the min of a size 0 array'):
v.min()
Expand Down

0 comments on commit 7e6b844

Please sign in to comment.