Skip to content

test.test_time.TimeTestCase.test_thread_time fails with Python 3.15 on s390x #143528

@mcepl

Description

@mcepl

Bug report

Bug description:

When building Python 3.15 packages for openSUSE/Factory I got test.test_time.TimeTestCase.test_thread_time failing on s390x. It passes even on minority architectures like aarch64, ppc64le, or armv7l, but on s390x it fails this one test:

[ 4378s] ======================================================================
[ 4378s] FAIL: test_thread_time (test.test_time.TimeTestCase.test_thread_time)
[ 4378s] ----------------------------------------------------------------------
[ 4378s] Traceback (most recent call last):
[ 4378s]   File "/home/abuild/rpmbuild/BUILD/python315-core-3.15.0_a3-build/Python-3.15.0a3/Lib/test/test_time.py", line 587, in test_thread_time
[ 4378s]     self.assertLess(stop - start, 0.020)
[ 4378s]     ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
[ 4378s] AssertionError: 0.07135823999999502 not less than 0.02

Is it just that our Hercules emulators are too slow and I should just increase that 0.020 to 0.1 or something, or there could be something more there there? The only other test_thread_time issue I found is this on NetBSD, but I don’t think it applies here, does it?

Complete build log

CPython versions tested on:

3.15

Operating systems tested on:

Linux

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-unsupportedtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions