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

Method test_warning

Lib/test/test_unittest/_test_warnings.py:38–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36
37 # user warnings should always be printed
38 def test_warning(self):
39 warnings.warn('uw')
40 warnings.warn('uw')
41 warnings.warn('uw')
42
43 # these warnings come from the same place; they will be printed
44 # only once by default or three times if the 'always' filter is used

Callers

nothing calls this directly

Calls 1

warnMethod · 0.45

Tested by

no test coverage detected