class_docstr: Tests regularization/postprocessing methods.
class_docstr_tok: ["Tests","regularization\/postprocessing","methods","."]
docstr: Test verbose error raising if problem.solve crashes.
docstr_tok: ["Test","verbose","error","raising","if","problem.solve","crashes","."]
code: def test_closest_psd_matrix_solve_error(self, input, solver):
      """Test verbose error raising if problem.solve crashes."""
      with pytest.raises(Exception) as solve_error:
          _ = kern.closest_psd_matrix(
              input, solver=solver, fix_diagonal=True, feastol=1e-10
          )
  
      assert "CVXPY solver did not converge." in str(solve_error.value)
  
imports: import math
  import sys
  from functools import partial
  import pytest
  import numpy
  import pennylane
  import pennylane.kernels
  from pennylane import numpy
label_desc: Use image node_id 8 for calling the TestRegularization obj's underlying member method code with example usage: obj.test_closest_psd_matrix_solve_error(input, solver) without return types