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

Method test_invalid

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

Source from the content-addressed store, hash-verified

6650 self.test_rollover_at_midnight(weekly=True)
6651
6652 def test_invalid(self):
6653 assertRaises = self.assertRaises
6654 assertRaises(ValueError, logging.handlers.TimedRotatingFileHandler,
6655 self.fn, 'X', encoding="utf-8", delay=True)
6656 assertRaises(ValueError, logging.handlers.TimedRotatingFileHandler,
6657 self.fn, 'W', encoding="utf-8", delay=True)
6658 assertRaises(ValueError, logging.handlers.TimedRotatingFileHandler,
6659 self.fn, 'W7', encoding="utf-8", delay=True)
6660
6661 # TODO: Test for utc=False.
6662 def test_compute_rollover_daily_attime(self):

Callers

nothing calls this directly

Calls 1

assertRaisesFunction · 0.85

Tested by

no test coverage detected