summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_curses.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:36:55 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-03 19:36:55 (GMT)
commit65f51bb1502aad75850c8b66db98d1359314c5d7 (patch)
tree36defcada99055e83f86dc2d825e86e8fce5d45d /Lib/test/test_curses.py
parent6fc41dd1e34a25298f867110a0f408b2d27e2a3f (diff)
parentb3bc7e764db4327953aaaf1316e0edc0ff6b16fb (diff)
downloadcpython-65f51bb1502aad75850c8b66db98d1359314c5d7.zip
cpython-65f51bb1502aad75850c8b66db98d1359314c5d7.tar.gz
cpython-65f51bb1502aad75850c8b66db98d1359314c5d7.tar.bz2
(Merge 3.2) 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.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_curses.py b/Lib/test/test_curses.py
index ccbbc23..72be3e7 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)
@@ -283,6 +283,7 @@ def test_unget_wch(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()