summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-27 07:30:30 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-27 07:30:30 (GMT)
commit86a96cee23cfba177f93ceb69f7441e66731c06f (patch)
tree641bcbe30dc47317fca469e5c9341b59e8065f05 /Lib/test/test_logging.py
parent9490af2150f9cf86a092a5c4f6e408a969881851 (diff)
downloadcpython-86a96cee23cfba177f93ceb69f7441e66731c06f.zip
cpython-86a96cee23cfba177f93ceb69f7441e66731c06f.tar.gz
cpython-86a96cee23cfba177f93ceb69f7441e66731c06f.tar.bz2
Re-enabled time test in test_logging.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 306eea7..e35a614 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -2279,10 +2279,10 @@ class FormatterTest(unittest.TestCase):
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