Skip to content

Commit 1592fc9

Browse files
committed
Revert "gh-153296: Fix flaky test_rollover_at_midnight on Windows"
This reverts commit 8ba4fe6.
1 parent 8ba4fe6 commit 1592fc9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Lib/test/test_logging.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6729,9 +6729,7 @@ def test_rollover_at_midnight(self, weekly=False):
67296729
# The creation time, used to compute the rollover time, cannot be
67306730
# changed, so the rollover cannot be forced by back-dating the file.
67316731
# Wait until the clock reaches a rollover time set one second ahead.
6732-
stat = os.stat(self.fn)
6733-
file_time = int(min(getattr(stat, 'st_birthtime', stat.st_ctime), stat.st_mtime))
6734-
rollover = max(int(time.time()), file_time) + 1
6732+
rollover = int(time.time()) + 1
67356733
atTime = datetime.datetime.fromtimestamp(rollover).time()
67366734
while time.time() < rollover:
67376735
time.sleep(rollover - time.time())

0 commit comments

Comments
 (0)