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

Method _assertNotWarns

Lib/unittest/case.py:854–857  ·  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

852 return context.handle('assertWarns', args, kwargs)
853
854 def _assertNotWarns(self, expected_warning, *args, **kwargs):
855 """The opposite of assertWarns. Private due to low demand."""
856 context = _AssertNotWarnsContext(expected_warning, self)
857 return context.handle('_assertNotWarns', args, kwargs)
858
859 def assertLogs(self, logger=None, level=None):
860 """Fail unless a log message of level *level* or higher is emitted

Callers 2

Calls 2

handleMethod · 0.45

Tested by 2