summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2017-11-01 14:38:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-11-01 14:38:35 (GMT)
commit1f81ea85e8e20347ec396001e5b869d36fe38398 (patch)
treeae6c87feb639cb89135036aae06edea369f5db60 /Lib/test/test_curses.py
parent2be9a31213e93e26a71150efaef1a975f8b9afec (diff)
downloadcpython-1f81ea85e8e20347ec396001e5b869d36fe38398.zip
cpython-1f81ea85e8e20347ec396001e5b869d36fe38398.tar.gz
cpython-1f81ea85e8e20347ec396001e5b869d36fe38398.tar.bz2
bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and earlier. (GH-3826) (#4218)
Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. (cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r--Lib/test/test_curses.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index 514ed83..8bb6630 100644
--- a/Lib/test/test_curses.py
+++ b/Lib/test/test_curses.py
@@ -359,6 +359,9 @@ class TestCurses(unittest.TestCase):
self.stdscr.getkey()
@requires_curses_func('unget_wch')
+ # XXX Remove the decorator when ncurses on OpenBSD be updated
+ @unittest.skipIf(sys.platform.startswith("openbsd"),
+ "OpenBSD's curses (v.5.7) has bugs")
def test_unget_wch(self):
stdscr = self.stdscr
encoding = stdscr.encoding