Guido van Rossum | 59e4f37 | 1999-03-11 13:26:23 +0000 | [diff] [blame^] | 1 | #! /usr/bin/env python |
2 | """Test script for popen2.py | ||||
3 | Christian Tismer | ||||
4 | """ | ||||
5 | |||||
6 | # popen2 contains its own testing routine | ||||
7 | # which is especially useful to see if open files | ||||
8 | # like stdin can be read successfully by a forked | ||||
9 | # subprocess. | ||||
10 | |||||
11 | def main(): | ||||
12 | from os import fork # skips test through ImportError | ||||
13 | import popen2 | ||||
14 | popen2._test() | ||||
15 | |||||
16 | main() | ||||
17 |