summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-29 19:26:37 (GMT)
committerGitHub <noreply@github.com>2021-03-29 19:26:37 (GMT)
commite9092b221d4951609827e437178a557fd07353af (patch)
tree1319bdc3bcfcfa810cd2c09a4a5e8f98bc2143cd
parentdae1963cf38f730291126b7dadfda89ffb21cefd (diff)
downloadcpython-e9092b221d4951609827e437178a557fd07353af.zip
cpython-e9092b221d4951609827e437178a557fd07353af.tar.gz
cpython-e9092b221d4951609827e437178a557fd07353af.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. (cherry picked from commit c8b5738810516df5722caf049003e9b319427bec) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
-rw-r--r--Lib/test/test_curses.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 7dd0695..c591469 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -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