summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-04-15 10:59:35 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-04-15 10:59:35 (GMT)
commit66940a11f873283be64bb09675c07f718f846fa1 (patch)
tree401e2087f8bdab1195061dca6cdcd1925c9706b0
parent77282cb4f8d6988587102343e5e8169554095aa5 (diff)
downloadcpython-66940a11f873283be64bb09675c07f718f846fa1.zip
cpython-66940a11f873283be64bb09675c07f718f846fa1.tar.gz
cpython-66940a11f873283be64bb09675c07f718f846fa1.tar.bz2
Issue #17713: Added failure diagnostics to test.
-rw-r--r--Lib/test/test_logging.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 99476de..47f03c7 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -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()