mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
test_logging: extended time range for rollover test.
This commit is contained in:
parent
a171f9c6a3
commit
252048c8a1
1 changed files with 1 additions and 1 deletions
|
@ -3515,7 +3515,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
|
||||||
# could of course still fail, but the chances are lower.
|
# could of course still fail, but the chances are lower.
|
||||||
found = False
|
found = False
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
GO_BACK = 2 * 60 # seconds
|
GO_BACK = 5 * 60 # seconds
|
||||||
for secs in range(GO_BACK):
|
for secs in range(GO_BACK):
|
||||||
prev = now - datetime.timedelta(seconds=secs)
|
prev = now - datetime.timedelta(seconds=secs)
|
||||||
fn = self.fn + prev.strftime(".%Y-%m-%d_%H-%M-%S")
|
fn = self.fn + prev.strftime(".%Y-%m-%d_%H-%M-%S")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue