Title: test_timerfd_initval fails with large time difference on NetBSD · Issue #131266 · python/cpython · GitHub
Open Graph Title: test_timerfd_initval fails with large time difference on NetBSD · Issue #131266 · python/cpython
X Title: test_timerfd_initval fails with large time difference on NetBSD · Issue #131266 · python/cpython
Description: Bug report Bug description: The test_timerfd_initval test in test_os.TimerfdTests is failing on NetBSD with a very large time difference between the expected and actual expiration values. The test expects values to be almost equal within...
Open Graph Description: Bug report Bug description: The test_timerfd_initval test in test_os.TimerfdTests is failing on NetBSD with a very large time difference between the expected and actual expiration values. The test ...
X Description: Bug report Bug description: The test_timerfd_initval test in test_os.TimerfdTests is failing on NetBSD with a very large time difference between the expected and actual expiration values. The test ...
Opengraph URL: https://github.com/python/cpython/issues/131266
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test_timerfd_initval fails with large time difference on NetBSD","articleBody":"# Bug report\n\n### Bug description:\n\nThe `test_timerfd_initval` test in `test_os.TimerfdTests` is failing on NetBSD with a very large time difference between the expected and actual expiration values. The test expects values to be almost equal within 3 decimal places, but the actual difference is over 1.7 billion seconds.\n\n### Configuration:\n```\n./configure --with-pydebug\n```\n### Test\n```\n./python -m test test_os -m test_timerfd_initval -v\n```\nOutput:\n```python\n== CPython 3.14.0a6+ (heads/main:26511993e63, Mar 15 2025, 01:30:33) [GCC 10.5.0]\n== NetBSD-10.0-amd64-x86_64-64bit-ELF little-endian\n== Python build: debug\n== cwd: /home/blue/cpython/build/test_python_worker_20567æ\n== CPU count: 16\n== encodings: locale=UTF-8 FS=utf-8\n== resources: all test resources are disabled, use -u option to unskip tests\nUsing random seed: 3011250179\n0:00:00 load avg: 2.25 Run 1 test sequentially in a single process\n0:00:00 load avg: 2.25 [1/1] test_os\ntest_timerfd_initval (test.test_os.TimerfdTests.test_timerfd_initval) ... FAIL\n======================================================================\nFAIL: test_timerfd_initval (test.test_os.TimerfdTests.test_timerfd_initval)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n File \"/home/blue/cpython/Lib/test/test_os.py\", line 4327, in test_timerfd_initval\n self.assertAlmostEqual(next_expiration, initial_expiration, places=self.CLOCK_RES_PLACES)\n ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: 1741991497.5326333 != 0.25 within 3 places (1741991497.2826333 difference)\n----------------------------------------------------------------------\nRan 1 test in 0.010s\nFAILED (failures=1)\ntest test_os failed\n0:00:00 load avg: 2.25 [1/1/1] test_os failed (1 failure)\n== Tests result: FAILURE ==\n1 test failed:\n test_os\nTotal duration: 958 ms\nTotal tests: run=1 (filtered) failures=1\nTotal test files: run=1/1 (filtered) failed=1\nResult: FAILURE\n```\n\nOS: `NetBSD-10.0-amd64`\n\n### CPython versions tested on:\n\nCPython main branch, 3.14, 3.13\n\n### Operating systems tested on:\n\nOther","author":{"url":"https://github.com/furkanonder","@type":"Person","name":"furkanonder"},"datePublished":"2025-03-14T22:59:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/131266/cpython/issues/131266"}
| 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:5a3ec3a4-2cca-55a3-7890-a19301fc27ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8836:84B9D:109ACFD:173025D:696A4271 |
| html-safe-nonce | 60443f6918eedc72aad01d8b447d2f1dadf2ccdcb6bcb8dd93223ccbd36c27a4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODM2Ojg0QjlEOjEwOUFDRkQ6MTczMDI1RDo2OTZBNDI3MSIsInZpc2l0b3JfaWQiOiI3MjMyNzIzODkzMTQ1NDUzMTY5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3f1d52b5c253bf05a76fb43f1ba0e1caf6811f7a14e033eaa62c7ba738dc9158 |
| hovercard-subject-tag | issue:2921448570 |
| 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/131266/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a2f4e96aa1678a3afbe95f63a4726fc23a0be2b719a3e721da0a8c9748c5410/python/cpython/issues/131266 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a2f4e96aa1678a3afbe95f63a4726fc23a0be2b719a3e721da0a8c9748c5410/python/cpython/issues/131266 |
| og:image:alt | Bug report Bug description: The test_timerfd_initval test in test_os.TimerfdTests is failing on NetBSD with a very large time difference between the expected and actual expiration values. The test ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | furkanonder |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef |
| 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 | 63c426b30d262aba269ef14c40e3c817b384cd61 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width