diff options
author | Michael Felt <aixtools@users.noreply.github.com> | 2021-03-29 19:06:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-29 19:06:24 (GMT) |
commit | c8b5738810516df5722caf049003e9b319427bec (patch) | |
tree | 1b7f5f8c3b57fa8cf5d3deb2550d3510fbb340ba | |
parent | 32430aadadf6e012e39167d3c18a24e49fb84874 (diff) | |
download | cpython-c8b5738810516df5722caf049003e9b319427bec.zip cpython-c8b5738810516df5722caf049003e9b319427bec.tar.gz cpython-c8b5738810516df5722caf049003e9b319427bec.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_curses.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 0833c86..7ce0461 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -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 |