docstr: Raising an exception with the wrong type and match= given.
  
  pytest should throw the unexpected exception - the pattern match is not
  really relevant if we got a different exception.
docstr_tok: ["Raising","an","exception","with","the","wrong","type","and","match=","given",".","pytest","should","throw","the","unexpected","exception","-","the","pattern","match","is","not","really","relevant","if","we","got","a","different","exception","."]
code: def test_raises_match_wrong_type(self):
      """Raising an exception with the wrong type and match= given.
  
      pytest should throw the unexpected exception - the pattern match is not
      really relevant if we got a different exception.
      """
      with pytest.raises(ValueError):
          with pytest.raises(IndexError, match="nomatch"):
              int("asdf")
  
imports: import re
  import sys
  import pytest
  from _pytest.outcomes import Failed
  from _pytest.pytester import Pytester
label_desc: Use image node_id 20 for calling the TestRaises obj's underlying member method code with example usage: obj.test_raises_match_wrong_type() without return types