[Python-checkins] bpo-43659: Fix test_curses on AIX (GH-25074)

serhiy-storchaka webhook-mailer at python.org
Mon Mar 29 15:06:42 EDT 2021


https://github.com/python/cpython/commit/c8b5738810516df5722caf049003e9b319427bec
commit: c8b5738810516df5722caf049003e9b319427bec
branch: master
author: Michael Felt <aixtools at users.noreply.github.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-03-29T22:06:24+03:00
summary:

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.

files:
M Lib/test/test_curses.py

diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 0833c86115ebd..7ce0461ab54f2 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -1174,6 +1174,7 @@ def test_issue13051(self):
 
 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



More information about the Python-checkins mailing list