(self)
| 4317 | logging.setLogRecordFactory(self.orig_factory) |
| 4318 | |
| 4319 | def test_logrecord_class(self): |
| 4320 | self.assertRaises(TypeError, self.root_logger.warning, |
| 4321 | self.next_message()) |
| 4322 | logging.setLogRecordFactory(DerivedLogRecord) |
| 4323 | self.root_logger.error(self.next_message()) |
| 4324 | self.assert_log_lines([ |
| 4325 | ('root', 'ERROR', '2'), |
| 4326 | ]) |
| 4327 | |
| 4328 | |
| 4329 | @threading_helper.requires_working_threading() |
nothing calls this directly
no test coverage detected