changeset 68181:6a8fa2e9b105

Issue #11330: Updated tests for correct asctime handling.
author Vinay Sajip <vinay_sajip@yahoo.co.uk>
date Sat, 26 Feb 2011 16:06:02 +0000
parents fed2c6d49f19
children 722aeeb57eab
files Lib/logging/__init__.py Lib/test/test_logging.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/logging/__init__.py	Sat Feb 26 16:00:04 2011 +0000
+++ b/Lib/logging/__init__.py	Sat Feb 26 16:06:02 2011 +0000
@@ -383,7 +383,7 @@
 class StringTemplateStyle(PercentStyle):
     default_format = '${message}'
     asctime_format = '${asctime}'
-    asctime_search = '${asctime'
+    asctime_search = '${asctime}'
 
     def __init__(self, fmt):
         self._fmt = fmt or self.default_format
--- a/Lib/test/test_logging.py	Sat Feb 26 16:00:04 2011 +0000
+++ b/Lib/test/test_logging.py	Sat Feb 26 16:06:02 2011 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 #
-# Copyright 2001-2010 by Vinay Sajip. All Rights Reserved.
+# Copyright 2001-2011 by Vinay Sajip. All Rights Reserved.
 #
 # Permission to use, copy, modify, and distribute this software and its
 # documentation for any purpose and without fee is hereby granted,
@@ -18,7 +18,7 @@
 
 """Test harness for the logging module. Run all tests.
 
-Copyright (C) 2001-2010 Vinay Sajip. All Rights Reserved.
+Copyright (C) 2001-2011 Vinay Sajip. All Rights Reserved.
 """
 
 import logging