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.
This commit is contained in:
Michael Felt 2021-03-29 21:06:24 +02:00 committed by GitHub
parent 32430aadad
commit c8b5738810
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View 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