mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #17713: Added failure diagnostics to test.
This commit is contained in:
parent
77282cb4f8
commit
66940a11f8
1 changed files with 5 additions and 1 deletions
|
@ -3988,12 +3988,16 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
|
|||
expected += 12 * 60 * 60
|
||||
# Add in adjustment for today
|
||||
expected += today
|
||||
actual = rh.computeRollover(currentTime)
|
||||
actual = rh.computeRollover(today)
|
||||
if actual != expected:
|
||||
print('failed in timezone: %d' % time.timezone)
|
||||
self.assertEqual(actual, expected)
|
||||
if day == wday:
|
||||
# goes into following week
|
||||
expected += 7 * 24 * 60 * 60
|
||||
actual = rh.computeRollover(today + 13 * 60 * 60)
|
||||
if actual != expected:
|
||||
print('failed in timezone: %d' % time.timezone)
|
||||
self.assertEqual(actual, expected)
|
||||
finally:
|
||||
rh.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue