Title: test_logging: rotation tests fails on Windows, macOS and FreeBSD · Issue #150960 · python/cpython · GitHub
Open Graph Title: test_logging: rotation tests fails on Windows, macOS and FreeBSD · Issue #150960 · python/cpython
X Title: test_logging: rotation tests fails on Windows, macOS and FreeBSD · Issue #150960 · python/cpython
Description: Bug report Windows PGO TailCall: https://buildbot.python.org/#/builders/1872/builds/84 macOS NoGIL: https://buildbot.python.org/#/builders/1367/builds/1140 FreeBSD14 Refleaks: https://buildbot.python.org/#/builders/1617/builds/886 Exampl...
Open Graph Description: Bug report Windows PGO TailCall: https://buildbot.python.org/#/builders/1872/builds/84 macOS NoGIL: https://buildbot.python.org/#/builders/1367/builds/1140 FreeBSD14 Refleaks: https://buildbot.pyth...
X Description: Bug report Windows PGO TailCall: https://buildbot.python.org/#/builders/1872/builds/84 macOS NoGIL: https://buildbot.python.org/#/builders/1367/builds/1140 FreeBSD14 Refleaks: https://buildbot.pyth...
Opengraph URL: https://github.com/python/cpython/issues/150960
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_logging: rotation tests fails on Windows, macOS and FreeBSD","articleBody":"# Bug report\n\n* Windows PGO TailCall: https://buildbot.python.org/#/builders/1872/builds/84\n* macOS NoGIL: https://buildbot.python.org/#/builders/1367/builds/1140\n* FreeBSD14 Refleaks: https://buildbot.python.org/#/builders/1617/builds/886\n\nExample on macOS:\n\n```\nFAIL: test_rollover_based_on_st_birthtime_only (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_based_on_st_birthtime_only)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/Users/buildbot/buildarea/pull_request.itamaro-macos-arm64-aws.macos-with-brew.refleak.nogil/build/Lib/test/test_logging.py\", line 6666, in test_rollover_based_on_st_birthtime_only\n self.assertTrue(found, msg=msg)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^\nAssertionError: False is not true : No rotated files found, went back 5 seconds\n```\n\nExample on Windows:\n\n```\nFAIL: test_rollover_based_on_st_birthtime_only (test.test_logging.TimedRotatingFileHandlerTest.test_rollover_based_on_st_birthtime_only)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"C:\\bbarea\\pull_request.itamaro-win64-srv-22-aws.tailcall.pgo\\build\\Lib\\test\\test_logging.py\", line 6666, in test_rollover_based_on_st_birthtime_only\n self.assertTrue(found, msg=msg)\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^\nAssertionError: False is not true : No rotated files found, went back 5 seconds\n\nStdout:\nContents of test_logging-2-njcaf5hh.log:\nos.stat_result(st_mode=33206, st_ino=116249165381905831, st_dev=5772745545947373322, st_nlink=1, st_uid=0, st_gid=0, st_size=88, st_atime=1780658874, st_mtime=1780658874, st_ctime=1780658869)\n2026-06-05 11:27:54,029 testing - new record supposedly in the new file after rollover\n\nContents of test_logging-2-njcaf5hh.log.2026-06-05_11-27-49:\nos.stat_result(st_mode=33206, st_ino=167477611143228771, st_dev=5772745545947373322, st_nlink=1, st_uid=0, st_gid=0, st_size=123, st_atime=1780658871, st_mtime=1780658871, st_ctime=1780658869)\n2026-06-05 11:27:49,817 testing - initial\n2026-06-05 11:27:51,921 testing - update before rollover to renew the st_mtime\n\n\nStderr:\nTest time: 2026-06-05 11-27-54\nThe only matching files are: ['test_logging-2-njcaf5hh.log', 'test_logging-2-njcaf5hh.log.2026-06-05_11-27-49']\n```","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2026-06-05T12:07:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/150960/cpython/issues/150960"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:20ecb460-4fed-78ff-4d1a-d8b0efdb6d6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCEA:D7643:4486F5:5D55B2:6A51436C |
| html-safe-nonce | 16dda70ad6d8e4dc2ea4173c25eff894f75c0b2addf9497f87cb624e92b2c715 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0VBOkQ3NjQzOjQ0ODZGNTo1RDU1QjI6NkE1MTQzNkMiLCJ2aXNpdG9yX2lkIjoiNjkyNDIyOTY3NjYyMjc1ODc2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ff548913b109719dea8c8e716413bfbe9cbd4723b04386d978f4b4a68c1f0b13 |
| hovercard-subject-tag | issue:4596776253 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/150960/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53ce913d59446164ca5fe3b3b261ba82c94f7395a706ce019418cc94888760c0/python/cpython/issues/150960 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53ce913d59446164ca5fe3b3b261ba82c94f7395a706ce019418cc94888760c0/python/cpython/issues/150960 |
| og:image:alt | Bug report Windows PGO TailCall: https://buildbot.python.org/#/builders/1872/builds/84 macOS NoGIL: https://buildbot.python.org/#/builders/1367/builds/1140 FreeBSD14 Refleaks: https://buildbot.pyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | e840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b78565f6aa43cc5323c9935ec11b22cca7bb0a62 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width