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.

Author xdegaye
Recipients xdegaye
Date 2019-04-14.19:32:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1555270378.07.0.766030130411.issue36630@roundup.psfhosted.org>
In-reply-to
Content
ncurses version: 6.1
TERM: screen-256color

$  ./python -m test -u curses test_curses
Run tests sequentially
0:00:00 load avg: 0.55 [1/1] test_curses
test test_curses failed -- Traceback (most recent call last):
  File "/path/to/Lib/test/test_curses.py", line 285, in test_colors_funcs
    curses.pair_content(curses.COLOR_PAIRS - 1)
OverflowError: signed short integer is greater than maximum

test_curses failed

== Tests result: FAILURE ==


Not sure if the following is relevant.

In /usr/include/ncurses.h:

    NCURSES_WRAPPED_VAR(int, COLOR_PAIRS);
    ...
    #define COLOR_PAIRS NCURSES_PUBLIC_VAR(COLOR_PAIRS())
    ...
    extern NCURSES_EXPORT_VAR(int) COLOR_PAIRS;

ncurses 6.1 release notes [1] says:

    The TERMINAL structure in <term.h> is now opaque. Doing that allowed making the structure larger, to hold the extended numeric data.
    ...
    The new data in TERMINAL holds the same information as TERMTYPE, but with larger numbers (“int” versus “short”). It is named TERMTYPE2.

[1] https://www.gnu.org/software/ncurses/
History
Date User Action Args
2019-04-14 19:32:58xdegayesetrecipients: + xdegaye
2019-04-14 19:32:58xdegayesetmessageid: <1555270378.07.0.766030130411.issue36630@roundup.psfhosted.org>
2019-04-14 19:32:58xdegayelinkissue36630 messages
2019-04-14 19:32:57xdegayecreate