diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-11-02 13:28:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-11-02 13:28:59 +0100 |
commit | d424747d5821c2873e24d25d3407d08b25ea3443 (patch) | |
tree | 6e1cfec1e8cb740f95dde8097cb58d3684c3d3c7 /src/testdir/test86.in | |
parent | 6407b3e80d7d7f8f0797c13ae35cc06f96be46c9 (diff) | |
download | vim-d424747d5821c2873e24d25d3407d08b25ea3443.zip |
patch 7.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.in')
-rw-r--r-- | src/testdir/test86.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test86.in b/src/testdir/test86.in index 819ae9587..32888f836 100644 --- a/src/testdir/test86.in +++ b/src/testdir/test86.in @@ -1094,8 +1094,20 @@ cb.append(">> OutputSetattr") ee('del sys.stdout.softspace') number_test('sys.stdout.softspace = %s', unsigned=True) number_test('sys.stderr.softspace = %s', unsigned=True) +ee('assert sys.stdout.isatty()==False') +ee('assert sys.stdout.seekable()==False') +ee('sys.stdout.close()') +ee('sys.stdout.flush()') +ee('assert sys.stderr.isatty()==False') +ee('assert sys.stderr.seekable()==False') +ee('sys.stderr.close()') +ee('sys.stderr.flush()') ee('sys.stdout.attr = None') cb.append(">> OutputWrite") +ee('assert sys.stdout.writable()==True') +ee('assert sys.stdout.readable()==False') +ee('assert sys.stderr.writable()==True') +ee('assert sys.stderr.readable()==False') ee('sys.stdout.write(None)') cb.append(">> OutputWriteLines") ee('sys.stdout.writelines(None)') |