New submission from Jakub Kulik <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue46099>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com