This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Solaris: Fix pthread_getcpuclockid test
Type: behavior Stage: resolved
Components: Tests Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, kulikjak, miss-islington
Priority: normal Keywords: patch

Created on 2021-12-16 11:54 by kulikjak, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 30140 merged kulikjak, 2021-12-16 11:57
PR 30183 merged miss-islington, 2021-12-18 13:26
PR 30184 merged miss-islington, 2021-12-18 13:26
Messages (4)
msg408694 - (view) Author: Jakub Kulik (kulikjak) * Date: 2021-12-16 11:54
On Solaris, when `pthread_getcpuclockid()` is called with current thread id as an argument, it returns `CLOCK_THREAD_CPUTIME_ID`.

======================================================================
FAIL: test_pthread_getcpuclockid (test.test_time.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/share/buildbot-worker/default/3.9.kulikjak-solaris-sparcv9/build/Lib/test/test_time.py", line 116, in test_pthread_getcpuclockid
    self.assertNotEqual(clk_id, time.CLOCK_THREAD_CPUTIME_ID)
AssertionError: 2 == 2

Based on the test code, 32bit AIX seems to do the same thing so I added another similar code for Solaris.
msg408847 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-12-18 13:26
New changeset 427a490c495cde8a152e938c6f02be65620e3e59 by Jakub Kulík in branch 'main':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140)
https://github.com/python/cpython/commit/427a490c495cde8a152e938c6f02be65620e3e59
msg408848 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-12-18 13:49
New changeset 4f945ad7a510ad6dde13353784e45239edcdc14e by Miss Islington (bot) in branch '3.10':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (GH-30183)
https://github.com/python/cpython/commit/4f945ad7a510ad6dde13353784e45239edcdc14e
msg408858 - (view) Author: Andrew Svetlov (asvetlov) * (Python committer) Date: 2021-12-18 15:51
New changeset a328ad7f9a9b6cd624da5efcc76daf88e0d22312 by Miss Islington (bot) in branch '3.9':
bpo-46099: Fix pthread_getcpuclockid test on Solaris (GH-30140) (#30184)
https://github.com/python/cpython/commit/a328ad7f9a9b6cd624da5efcc76daf88e0d22312
History
Date User Action Args
2022-04-11 14:59:53adminsetgithub: 90257
2021-12-18 16:27:13AlexWaygoodsetstatus: open -> closed
type: behavior
resolution: fixed
stage: patch review -> resolved
2021-12-18 15:51:42asvetlovsetmessages: + msg408858
2021-12-18 13:49:09asvetlovsetmessages: + msg408848
2021-12-18 13:26:38asvetlovsetnosy: + asvetlov
messages: + msg408847
2021-12-18 13:26:35miss-islingtonsetpull_requests: + pull_request28404
2021-12-18 13:26:31miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request28403
2021-12-16 11:57:18kulikjaksetkeywords: + patch
stage: patch review
pull_requests: + pull_request28358
2021-12-16 11:54:02kulikjakcreate