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

Method test_critical

Lib/test/test_logging.py:5779–5788  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5777 (exc.__class__, exc, exc.__traceback__))
5778
5779 def test_critical(self):
5780 msg = 'critical test! %r'
5781 self.adapter.critical(msg, self.recording)
5782
5783 self.assertEqual(len(self.recording.records), 1)
5784 record = self.recording.records[0]
5785 self.assertEqual(record.levelno, logging.CRITICAL)
5786 self.assertEqual(record.msg, msg)
5787 self.assertEqual(record.args, (self.recording,))
5788 self.assertEqual(record.funcName, 'test_critical')
5789
5790 def test_is_enabled_for(self):
5791 old_disable = self.adapter.logger.manager.disable

Callers

nothing calls this directly

Calls 3

lenFunction · 0.85
criticalMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected