-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
test_timerfd_initval fails with large time difference on NetBSD #131266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
As with gh-131263, this whole test class is supposed to be skipped on non-Linux platforms. In that framing, this could be closed as a duplicate. |
I think we can even close it as a duplicate of #126112 |
In addition, 3 more tests are failing. They are failing with error outputs different from those on Gentoo. ======================================================================
FAIL: test_timerfd_TFD_TIMER_ABSTIME (test.test_os.TimerfdTests.test_timerfd_TFD_TIMER_ABSTIME)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/blue/Desktop/cpython/Lib/test/test_os.py", line 4425, in test_timerfd_TFD_TIMER_ABSTIME
self.assertAlmostEqual(next_expiration, offset, places=self.CLOCK_RES_PLACES)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1.003397717 != 1 within 3 places (0.0033977169999999113 difference)
======================================================================
FAIL: test_timerfd_initval (test.test_os.TimerfdTests.test_timerfd_initval)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/blue/Desktop/cpython/Lib/test/test_os.py", line 4330, in test_timerfd_initval
self.assertAlmostEqual(next_expiration, initial_expiration, places=self.CLOCK_RES_PLACES)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 1743795512.110591 != 0.25 within 3 places (1743795511.860591 difference)
======================================================================
FAIL: test_timerfd_ns_select (test.test_os.TimerfdTests.test_timerfd_ns_select)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/blue/Desktop/cpython/Lib/test/test_os.py", line 4603, in test_timerfd_ns_select
self.assertEqual((rfd, wfd, xfd), ([], [], []))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Tuples differ: ([], [3], []) != ([], [], [])
First differing element 1:
[3]
[]
- ([], [3], [])
? -
+ ([], [], [])
======================================================================
FAIL: test_timerfd_select (test.test_os.TimerfdTests.test_timerfd_select)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/blue/Desktop/cpython/Lib/test/test_os.py", line 4438, in test_timerfd_select
self.assertEqual((rfd, wfd, xfd), ([], [], []))
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Tuples differ: ([], [3], []) != ([], [], [])
First differing element 1:
[3]
[]
- ([], [3], [])
? -
+ ([], [], []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
The
test_timerfd_initval
test intest_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.Configuration:
Test
Output:
OS:
NetBSD-10.0-amd64
CPython versions tested on:
CPython main branch, 3.14, 3.13
Operating systems tested on:
Other
The text was updated successfully, but these errors were encountered: