[New-bugs-announce] [issue46099] Solaris: Fix pthread_getcpuclockid test

Jakub Kulik report at bugs.python.org
Thu Dec 16 06:54:02 EST 2021


New submission from Jakub Kulik <jakub.kulik at oracle.com>:

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.

----------
components: Tests
messages: 408694
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Solaris: Fix pthread_getcpuclockid test
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46099>
_______________________________________


More information about the New-bugs-announce mailing list