summaryrefslogtreecommitdiffstats
path: root/src/testdir/test86.ok
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-11-02 13:28:59 +0100
committerBram Moolenaar <Bram@vim.org>2015-11-02 13:28:59 +0100
commitd424747d5821c2873e24d25d3407d08b25ea3443 (patch)
tree6e1cfec1e8cb740f95dde8097cb58d3684c3d3c7 /src/testdir/test86.ok
parent6407b3e80d7d7f8f0797c13ae35cc06f96be46c9 (diff)
patch 7.4.905v7.4.905
Problem: Python interface can produce error "vim.message' object has no attribute 'isatty'". Solution: Add dummy isatty(), readable(), etc. (closes #464)
Diffstat (limited to 'src/testdir/test86.ok')
-rw-r--r--src/testdir/test86.ok14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testdir/test86.ok b/src/testdir/test86.ok
index 8edb749970..5cb0ac5740 100644
--- a/src/testdir/test86.ok
+++ b/src/testdir/test86.ok
@@ -447,7 +447,7 @@ range:__dir__,__members__,append,end,start
dictionary:__dir__,__members__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
list:__dir__,__members__,extend,locked
function:__dir__,__members__,softspace
-output:__dir__,__members__,flush,softspace,write,writelines
+output:__dir__,__members__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
{}
{'a': 1}
{'a': 1}
@@ -488,8 +488,20 @@ sys.stderr.softspace = []:TypeError:('expected int(), long() or something suppor
sys.stderr.softspace = None:TypeError:('expected int(), long() or something supporting coercing to long(), but got NoneType',)
sys.stderr.softspace = -1:ValueError:('number must be greater or equal to zero',)
<<< Finished
+assert sys.stdout.isatty()==False:NOT FAILED
+assert sys.stdout.seekable()==False:NOT FAILED
+sys.stdout.close():NOT FAILED
+sys.stdout.flush():NOT FAILED
+assert sys.stderr.isatty()==False:NOT FAILED
+assert sys.stderr.seekable()==False:NOT FAILED
+sys.stderr.close():NOT FAILED
+sys.stderr.flush():NOT FAILED
sys.stdout.attr = None:AttributeError:('invalid attribute: attr',)
>> OutputWrite
+assert sys.stdout.writable()==True:NOT FAILED
+assert sys.stdout.readable()==False:NOT FAILED
+assert sys.stderr.writable()==True:NOT FAILED
+assert sys.stderr.readable()==False:NOT FAILED
sys.stdout.write(None):TypeError:('coercing to Unicode: need string or buffer, NoneType found',)
>> OutputWriteLines
sys.stdout.writelines(None):TypeError:("'NoneType' object is not iterable",)