From c82a2ea58a2505c66160e102c67def143c923da7 Mon Sep 17 00:00:00 2001 From: Michael Felt Date: Mon, 29 Mar 2021 21:06:24 +0200 Subject: [PATCH] bpo-43659: Fix test_curses on AIX (GH-25074) curses.update_lines_cols() is only defined when the curses library provides either resizeterm() or resize_term() functions which are optional and are not provided on AIX. (cherry picked from commit c8b5738810516df5722caf049003e9b319427bec) Co-authored-by: Michael Felt --- Lib/test/test_curses.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index c1ad23b456e206..4bdc2379fd1edf 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -1167,6 +1167,7 @@ def test_issue13051(self): class MiscTests(unittest.TestCase): + @requires_curses_func('update_lines_cols') def test_update_lines_cols(self): curses.update_lines_cols() lines, cols = curses.LINES, curses.COLS