class_docstr: test pytest.deprecated_call()
class_docstr_tok: ["test","pytest.deprecated_call","(",")"]
docstr: Ensure deprecated_call() raises the expected failure when its block/function does
  not raise a deprecation warning.
code: def test_deprecated_call_no_warning(self, mode) -> None:
      """Ensure deprecated_call() raises the expected failure when its block/function does
      not raise a deprecation warning.
      """
  
      def f():
          pass
  
      msg = "No warnings of type (.*DeprecationWarning.*, .*PendingDeprecationWarning.*)"
      with pytest.raises(pytest.fail.Exception, match=msg):
          if mode == "call":
              pytest.deprecated_call(f)
          else:
              with pytest.deprecated_call():
                  f()
  
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 9 for calling the TestDeprecatedCall obj's underlying member method code with example usage: obj.test_deprecated_call_no_warning(mode) without return types