~ubuntu-branches/ubuntu/precise/python3.2/precise-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_curses.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-03-09 18:40:39 UTC
  • mfrom: (30.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120309184039-j3yk2emxr1plyo21
Tags: 3.2.3~rc1-1
* Python 3.2.3 release candidate 1.
* Update to 20120309 from the 3.2 branch.
* Fix libpython.a symlink. Closes: #660146.
* Build-depend on xauth.
* Run the gdb tests for the debug build only.

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
    win = curses.newwin(5,5)
184
184
    win = curses.newwin(5,5, 1,1)
185
185
    curses.nl() ; curses.nl(1)
186
 
    curses.putp('abc')
 
186
    curses.putp(b'abc')
187
187
    curses.qiflush()
188
188
    curses.raw() ; curses.raw(1)
189
189
    curses.setsyx(5,5)
190
190
    curses.tigetflag('hc')
191
191
    curses.tigetnum('co')
192
192
    curses.tigetstr('cr')
193
 
    curses.tparm('cr')
 
193
    curses.tparm(b'cr')
194
194
    curses.typeahead(sys.__stdin__.fileno())
195
195
    curses.unctrl('a')
196
196
    curses.ungetch('a')
264
264
    curses.ungetch(1025)
265
265
    stdscr.getkey()
266
266
 
 
267
def test_issue10570():
 
268
    b = curses.tparm(curses.tigetstr("cup"), 5, 3)
 
269
    assert type(b) is bytes
 
270
    curses.putp(b)
 
271
 
267
272
def main(stdscr):
268
273
    curses.savetty()
269
274
    try:
272
277
        test_userptr_without_set(stdscr)
273
278
        test_resize_term(stdscr)
274
279
        test_issue6243(stdscr)
 
280
        test_issue10570()
275
281
    finally:
276
282
        curses.resetty()
277
283