Skip to content

Commit

Permalink
Update test/exceptions/test_errors.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Balandat <[email protected]>
  • Loading branch information
jduerholt and Balandat authored Sep 15, 2024
1 parent d14baee commit a44d242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/exceptions/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ def test_OptimizationTimeoutError(self):
def test_OptimizationGradientError(self):
error = OptimizationGradientError("message", current_x=np.array([1.0]))
self.assertTrue(np.array_equal(error.current_x, np.array([1.0])))
with self.assertRaises(OptimizationGradientError):
with self.assertRaisesRegex(OptimizationGradientError, "message"):
raise error

0 comments on commit a44d242

Please sign in to comment.