@@ -6615,7 +6615,8 @@ def test_rollover(self):
66156615 print (tf .read ())
66166616 self .assertTrue (found , msg = msg )
66176617
6618- @unittest .skipUnless (support .has_st_birthtime , "st_birthtime not available or supported by Python on this OS" )
6618+ @unittest .skipUnless (support .has_st_birthtime ,
6619+ "st_birthtime not available or supported by Python on this OS" )
66196620 def test_rollover_based_on_st_birthtime_only (self ):
66206621 def add_record (message : str ) -> None :
66216622 fh = logging .handlers .TimedRotatingFileHandler (
@@ -6628,15 +6629,17 @@ def add_record(message: str) -> None:
66286629
66296630 add_record ('testing - initial' )
66306631 self .assertLogFile (self .fn )
6631- # Sleep a little over the half of rollover time - and this value must be over
6632- # 2 seconds, since this is the mtime resolution on FAT32 filesystems.
6632+ # Sleep a little over the half of rollover time - and this value
6633+ # must be over 2 seconds, since this is the mtime resolution on
6634+ # FAT32 filesystems.
66336635 time .sleep (2.1 )
66346636 add_record ('testing - update before rollover to renew the st_mtime' )
66356637 time .sleep (2.1 ) # a little over the half of rollover time
66366638 add_record ('testing - new record supposedly in the new file after rollover' )
66376639
6638- # At this point, the log file should be rotated if the rotation is based
6639- # on creation time but should be not if it's based on creation time
6640+ # At this point, the log file should be rotated if the rotation
6641+ # is based on creation time but should be not if it's based on
6642+ # creation time.
66406643 found = False
66416644 now = datetime .datetime .now ()
66426645 GO_BACK = 5 # seconds
0 commit comments