]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43659: Fix test_curses on AIX (GH-25074)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 29 Mar 2021 19:26:37 +0000 (12:26 -0700)
committerGitHub <noreply@github.com>
Mon, 29 Mar 2021 19:26:37 +0000 (12:26 -0700)
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 <aixtools@users.noreply.github.com>
Lib/test/test_curses.py

index 7dd0695aa72771705b0a3dfc5e59075512f48c9a..c5914698f129fa853b95d3cd7703d028f2e7a644 100644 (file)
@@ -1151,6 +1151,7 @@ class TestCurses(unittest.TestCase):
 
 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