[Python-checkins] cpython: Re-enabled time test in test_logging.
vinay.sajip
python-checkins at python.org
Wed Apr 27 09:30:57 CEST 2011
http://hg.python.org/cpython/rev/e3ac9fd27525
changeset: 69592:e3ac9fd27525
user: Vinay Sajip <vinay_sajip at yahoo.co.uk>
date: Wed Apr 27 08:30:30 2011 +0100
summary:
Re-enabled time test in test_logging.
files:
Lib/test/test_logging.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2279,10 +2279,10 @@
def test_invalid_style(self):
self.assertRaises(ValueError, logging.Formatter, None, None, 'x')
- def disabled_test_time(self):
+ def test_time(self):
r = self.get_record()
dt = datetime.datetime(1993,4,21,8,3,0,0,utc)
- r.created = time.mktime(dt.utctimetuple())
+ r.created = time.mktime(dt.timetuple()) - time.timezone
r.msecs = 123
f = logging.Formatter('%(asctime)s %(message)s')
f.converter = time.gmtime
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list