Mercurial > vim
comparison src/testdir/test86.ok @ 8967:df5f9284fcba v7.4.1769
commit https://github.com/vim/vim/commit/6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 21 20:00:56 2016 +0200
patch 7.4.1769
Problem: No "closed", "errors" and "encoding" attribute on Python output.
Solution: Add attributes and more tests. (Roland Puntaier, closes https://github.com/vim/vim/issues/622)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Apr 2016 20:15:05 +0200 |
parents | 8755d57debaa |
children | 39cc63e8df7c |
comparison
equal
deleted
inserted
replaced
8966:2aff38480967 | 8967:df5f9284fcba |
---|---|
447 tabpage:__dir__,__members__,number,valid,vars,window,windows | 447 tabpage:__dir__,__members__,number,valid,vars,window,windows |
448 range:__dir__,__members__,append,end,start | 448 range:__dir__,__members__,append,end,start |
449 dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values | 449 dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values |
450 list:__dir__,__members__,extend,locked | 450 list:__dir__,__members__,extend,locked |
451 function:__dir__,__members__,args,self,softspace | 451 function:__dir__,__members__,args,self,softspace |
452 output:__dir__,__members__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines | 452 output:__dir__,__members__,close,closed,flush,isatty,readable,seekable,softspace,writable,write,writelines |
453 {} | 453 {} |
454 {'a': 1} | 454 {'a': 1} |
455 {'a': 1} | 455 {'a': 1} |
456 [] | 456 [] |
457 ['a', 'b', 'c', '7'] | 457 ['a', 'b', 'c', '7'] |
598 >> OutputWrite | 598 >> OutputWrite |
599 assert sys.stdout.writable()==True:NOT FAILED | 599 assert sys.stdout.writable()==True:NOT FAILED |
600 assert sys.stdout.readable()==False:NOT FAILED | 600 assert sys.stdout.readable()==False:NOT FAILED |
601 assert sys.stderr.writable()==True:NOT FAILED | 601 assert sys.stderr.writable()==True:NOT FAILED |
602 assert sys.stderr.readable()==False:NOT FAILED | 602 assert sys.stderr.readable()==False:NOT FAILED |
603 assert sys.stdout.closed()==False:NOT FAILED | |
604 assert sys.stderr.closed()==False:NOT FAILED | |
605 assert sys.stdout.errors=="strict":NOT FAILED | |
606 assert sys.stderr.errors=="strict":NOT FAILED | |
607 assert sys.stdout.encoding==sys.stderr.encoding:NOT FAILED | |
603 sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',) | 608 sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',) |
604 >> OutputWriteLines | 609 >> OutputWriteLines |
605 sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",) | 610 sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",) |
606 sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',) | 611 sys.stdout.writelines([1]):TypeError:('coercing to Unicode: need string or buffer, int found',) |
607 >>> Testing *Iter* using sys.stdout.writelines(%s) | 612 >>> Testing *Iter* using sys.stdout.writelines(%s) |