summaryrefslogtreecommitdiff
path: root/src/testdir/test87.ok
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-21 20:00:56 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-21 20:00:56 +0200
commit6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953 (patch)
treeff1a1467afecfc2a5a630e20cf3b0756834519f3 /src/testdir/test87.ok
parentd106e5ba7f10f0d2a14eaefe5d78405044416cb9 (diff)
downloadvim-6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953.zip
patch 7.4.1769
Problem: No "closed", "errors" and "encoding" attribute on Python output. Solution: Add attributes and more tests. (Roland Puntaier, closes #622)
Diffstat (limited to 'src/testdir/test87.ok')
-rw-r--r--src/testdir/test87.ok7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/test87.ok b/src/testdir/test87.ok
index 25c0b5103..10069b995 100644
--- a/src/testdir/test87.ok
+++ b/src/testdir/test87.ok
@@ -449,7 +449,7 @@ range:__dir__,append,end,start
dictionary:__dir__,get,has_key,items,keys,locked,pop,popitem,scope,update,values
list:__dir__,extend,locked
function:__dir__,args,self,softspace
-output:__dir__,close,flush,isatty,readable,seekable,softspace,writable,write,writelines
+output:__dir__,close,closed,flush,isatty,readable,seekable,softspace,writable,write,writelines
{}
{'a': 1}
{'a': 1}
@@ -600,6 +600,11 @@ 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
+assert sys.stdout.closed()==False:NOT FAILED
+assert sys.stderr.closed()==False:NOT FAILED
+assert sys.stdout.errors=="strict":NOT FAILED
+assert sys.stderr.errors=="strict":NOT FAILED
+assert sys.stdout.encoding==sys.stderr.encoding:NOT FAILED
sys.stdout.write(None):(<class 'TypeError'>, TypeError("Can't convert 'NoneType' object to str implicitly",))
>> OutputWriteLines
sys.stdout.writelines(None):(<class 'TypeError'>, TypeError("'NoneType' object is not iterable",))