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

Method _assertNotWarns

Lib/unittest/case.py:847–850  ·  view source on GitHub ↗

The opposite of assertWarns. Private due to low demand.

(self, expected_warning, *args, **kwargs)

Source from the content-addressed store, hash-verified

845 return context.handle('assertWarns', args, kwargs)
846
847 def _assertNotWarns(self, expected_warning, *args, **kwargs):
848 """The opposite of assertWarns. Private due to low demand."""
849 context = _AssertNotWarnsContext(expected_warning, self)
850 return context.handle('_assertNotWarns', args, kwargs)
851
852 def assertLogs(self, logger=None, level=None, formatter=None):
853 """Fail unless a log message of level *level* or higher is emitted

Callers 2

Calls 2

handleMethod · 0.45

Tested by 2