MCPcopy
hub / github.com/tornadoweb/tornado / ignore_deprecation

Function ignore_deprecation

tornado/test/util.py:89–93  ·  view source on GitHub ↗

Context manager to ignore deprecation warnings.

()

Source from the content-addressed store, hash-verified

87
88@contextlib.contextmanager
89def ignore_deprecation():
90 """Context manager to ignore deprecation warnings."""
91 with warnings.catch_warnings():
92 warnings.simplefilter("ignore", DeprecationWarning)
93 yield
94
95
96ABT_SKIP_MESSAGE = "abstract base class"

Calls

no outgoing calls

Tested by 10

connect_to_serverMethod · 0.72
setUpMethod · 0.72
setUpMethod · 0.72
setUpMethod · 0.72