mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Re-enabled time test in test_logging.
This commit is contained in:
parent
9490af2150
commit
86a96cee23
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue