]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43659: Fix test_curses on AIX (GH-25074)
authorMichael Felt <aixtools@users.noreply.github.com>
Mon, 29 Mar 2021 19:06:24 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Mar 2021 19:06:24 +0000 (22:06 +0300)
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.

Lib/test/test_curses.py

index 0833c86115ebd96a76e3ee62acb0e50d4dfaa9aa..7ce0461ab54f2df4928ab2b28437bbc0e206988e 100644 (file)
@@ -1174,6 +1174,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