diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-11-01 14:38:35 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-01 14:38:35 (GMT) |
commit | 1f81ea85e8e20347ec396001e5b869d36fe38398 (patch) | |
tree | ae6c87feb639cb89135036aae06edea369f5db60 /Lib/test/test_curses.py | |
parent | 2be9a31213e93e26a71150efaef1a975f8b9afec (diff) | |
download | cpython-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.py | 3 |
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 |