From 59e4f37d76c29c3133c5441ed60b1b4ae79a3776 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 11 Mar 1999 13:26:23 +0000 Subject: Test for popen2 module, by Chris Tismer. --- Lib/test/output/test_popen2 | 5 +++++ Lib/test/test_popen2.py | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 Lib/test/output/test_popen2 create mode 100644 Lib/test/test_popen2.py diff --git a/Lib/test/output/test_popen2 b/Lib/test/output/test_popen2 new file mode 100644 index 0000000..e13034d --- /dev/null +++ b/Lib/test/output/test_popen2 @@ -0,0 +1,5 @@ +test_popen2 +testing popen2... +testing popen3... +All OK + diff --git a/Lib/test/test_popen2.py b/Lib/test/test_popen2.py new file mode 100644 index 0000000..be79f3c --- /dev/null +++ b/Lib/test/test_popen2.py @@ -0,0 +1,17 @@ +#! /usr/bin/env python +"""Test script for popen2.py + Christian Tismer +""" + +# popen2 contains its own testing routine +# which is especially useful to see if open files +# like stdin can be read successfully by a forked +# subprocess. + +def main(): + from os import fork # skips test through ImportError + import popen2 + popen2._test() + +main() + -- cgit v0.12