diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 20:35:40 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-03 20:35:40 +0100 |
commit | b588e731715f9e77b206dcbcc5198393f79e61b7 (patch) | |
tree | 214179b9220027dd8a2db0bc6ff5431e7038a6f2 /Lib/test/test_curses.py | |
parent | bfbae77cf77ce4c0404c9549020c49d2fceee367 (diff) | |
download | cpython-b588e731715f9e77b206dcbcc5198393f79e61b7.tar.gz |
Issue #10570: curses.putp() is now expecting a byte string, instead of a
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
Diffstat (limited to 'Lib/test/test_curses.py')
-rw-r--r-- | Lib/test/test_curses.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py index 09807834b4..58121477b1 100644 --- a/Lib/test/test_curses.py +++ b/Lib/test/test_curses.py @@ -183,7 +183,7 @@ def module_funcs(stdscr): win = curses.newwin(5,5) win = curses.newwin(5,5, 1,1) curses.nl() ; curses.nl(1) - curses.putp('abc') + curses.putp(b'abc') curses.qiflush() curses.raw() ; curses.raw(1) curses.setsyx(5,5) @@ -267,6 +267,7 @@ def test_issue6243(stdscr): def test_issue10570(): b = curses.tparm(curses.tigetstr("cup"), 5, 3) assert type(b) is bytes + curses.putp(b) def main(stdscr): curses.savetty() |