MCPcopy Index your code
hub / github.com/python/cpython / _runtime_warn

Method _runtime_warn

Lib/test/test_unittest/test_case.py:1634–1635  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1632
1633 def testAssertWarnsCallable(self):
1634 def _runtime_warn():
1635 warnings.warn("foo", RuntimeWarning)
1636 # Success when the right warning is triggered, even several times
1637 self.assertWarns(RuntimeWarning, _runtime_warn)
1638 self.assertWarns(RuntimeWarning, _runtime_warn)

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected