Skip to content

test.test_curses.TestCurses.test_terminfo fails on PPC64LE #141534

@mcepl

Description

@mcepl

Bug report

Bug description:

On PPC64LE Python 3.15 this test fails with

[ 1826s] ======================================================================
[ 1826s] FAIL: test_terminfo (test.test_curses.TestCurses.test_terminfo)
[ 1826s] ----------------------------------------------------------------------
[ 1826s] Traceback (most recent call last):
[ 1826s]   File "/home/abuild/rpmbuild/BUILD/python315-3.15.0_a1-build/Python-3.15.0a1/Lib/test/test_curses.py", line 688, in test_terminfo
[ 1826s]     self.assertEqual(curses.tigetflag('cols'), -1)
[ 1826s]     ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 1826s] AssertionError: 255 != -1

I cannot even understand how could Boolean have value 255. Does PPC64LE different size of long (used by _curses_tigetflag_impl)?

_log.txt

I observe the same error even on the older versions of Python all the way to 3.9 (it apparently is not present in 3.6 at all).

CPython versions tested on:

3.15

Operating systems tested on:

Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions