class_docstr: test pytest.deprecated_call()
class_docstr_tok: ["test","pytest.deprecated_call","(",")"]
code: def test_deprecated_call_supports_match(self) -> None:
      with pytest.deprecated_call(match=r"must be \d+$"):
          warnings.warn("value must be 42", DeprecationWarning)
  
      with pytest.deprecated_call():
          with pytest.raises(
              pytest.fail.Exception, match="DID NOT WARN"
          ):
              with pytest.deprecated_call(match=r"must be \d+$"):
                  warnings.warn("this is not here", DeprecationWarning)
  
imports: import warnings
  from typing import List
  from typing import Optional
  from typing import Type
  import pytest
  from _pytest.pytester import Pytester
  from _pytest.recwarn import WarningsRecorder
label_desc: Use image node_id 12 for calling the TestDeprecatedCall obj's underlying member method code with example usage: obj.test_deprecated_call_supports_match() without return types