summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-11 13:26:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-11 13:26:23 (GMT)
commit59e4f37d76c29c3133c5441ed60b1b4ae79a3776 (patch)
tree767eda91cac1d5638f7d4b981702fb46f3a6b2ec /Lib
parenta060fb2598d3cebbf6c6459c39eeffa6913eceb3 (diff)
downloadcpython-59e4f37d76c29c3133c5441ed60b1b4ae79a3776.zip
cpython-59e4f37d76c29c3133c5441ed60b1b4ae79a3776.tar.gz
cpython-59e4f37d76c29c3133c5441ed60b1b4ae79a3776.tar.bz2
Test for popen2 module, by Chris Tismer.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/output/test_popen25
-rw-r--r--Lib/test/test_popen2.py17
2 files changed, 22 insertions, 0 deletions
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()
+