]> granicus.if.org Git - python/commitdiff
test_logging: diagnostic code changes.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 06:37:04 +0000 (06:37 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 06:37:04 +0000 (06:37 +0000)
Lib/test/test_logging.py

index f9488ce5375395033ad6c2eca335b4bbe75324d4..f534cac7dc2a57fdd6daa81d2a885a1eeec51761 100644 (file)
@@ -2057,6 +2057,7 @@ for when, exp in (('S', 1),
             # Failures occur on some systems for MIDNIGHT and W0.
             # Print detailed calculation for MIDNIGHT so we can try to see
             # what's going on
+            import time
             if when == 'MIDNIGHT':
                 try:
                     if rh.utc: