From 34b8d0278505311f33805a54bc758bc4b690c882 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 1 Jul 2017 03:37:03 +0300 Subject: [PATCH] Feat(subproc.py): Run tests --- subproc.py | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 subproc.py diff --git a/subproc.py b/subproc.py old mode 100644 new mode 100755 index d16ecc6..502d5dd --- a/subproc.py +++ b/subproc.py @@ -1,3 +1,5 @@ +#! /usr/bin/env python + """Run a subprocess and communicate with it via stdin, stdout, and stderr. Requires that platform supports, eg, posix-style 'os.pipe' and 'os.fork' @@ -686,3 +688,6 @@ def test(p=0): del p print("\tDone.") return None + +if __name__ == '__main__': + test() -- 2.39.2