(current, expected)
| 6697 | # DST begins at 2012-3-11T02:00:00 and ends at 2012-11-4T02:00:00. |
| 6698 | DT = datetime.datetime |
| 6699 | def test(current, expected): |
| 6700 | actual = fh.computeRollover(current.timestamp()) |
| 6701 | diff = actual - expected.timestamp() |
| 6702 | if diff: |
| 6703 | self.assertEqual(diff, 0, datetime.timedelta(seconds=diff)) |
| 6704 | |
| 6705 | fh = logging.handlers.TimedRotatingFileHandler( |
| 6706 | self.fn, encoding="utf-8", when='MIDNIGHT', utc=False) |
nothing calls this directly
no test coverage detected