diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-03-08 18:27:21 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-03-08 18:27:21 +0100 |
commit | f65333c9b59654a70f2a07200f65c93dfcaa49b3 (patch) | |
tree | ac14c6afd7e6ed4edaa4208668228691ebd2b69e /src/testdir/test_channel_pipe.py | |
parent | 367aabdbf76f7df00fd18e39d9378d1360a526ab (diff) |
patch 7.4.1518v7.4.1518
Problem: Channel with disconnected in/out/err is not supported.
Solution: Implement it for Unix.
Diffstat (limited to 'src/testdir/test_channel_pipe.py')
-rw-r--r-- | src/testdir/test_channel_pipe.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testdir/test_channel_pipe.py b/src/testdir/test_channel_pipe.py index d5da687309..fa1a40f131 100644 --- a/src/testdir/test_channel_pipe.py +++ b/src/testdir/test_channel_pipe.py @@ -10,7 +10,12 @@ import sys if __name__ == "__main__": if len(sys.argv) > 1: - print(sys.argv[1]) + if sys.argv[1].startswith("err"): + print(sys.argv[1], file=sys.stderr) + sys.stderr.flush() + else: + print(sys.argv[1]) + sys.stdout.flush() while True: typed = sys.stdin.readline() |