MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_function

Method test_function

Lib/test/test_warnings/__init__.py:2041–2047  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2039 self.assertIs(init_subclass_saw, C)
2040
2041 def test_function(self):
2042 @deprecated("b will go away soon")
2043 def b():
2044 pass
2045
2046 with self.assertWarnsRegex(DeprecationWarning, "b will go away soon"):
2047 b()
2048
2049 def test_method(self):
2050 class Capybara:

Callers

nothing calls this directly

Calls 2

bFunction · 0.85
assertWarnsRegexMethod · 0.80

Tested by

no test coverage detected