From: Oleg Broytman Date: Sat, 1 Jul 2017 00:37:03 +0000 (+0300) Subject: Feat(subproc.py): Run tests X-Git-Tag: 5.0.0~109 X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=commitdiff_plain;h=34b8d0278505311f33805a54bc758bc4b690c882 Feat(subproc.py): Run tests --- 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()