mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Test for popen2 module, by Chris Tismer.
This commit is contained in:
parent
a060fb2598
commit
59e4f37d76
2 changed files with 22 additions and 0 deletions
5
Lib/test/output/test_popen2
Normal file
5
Lib/test/output/test_popen2
Normal file
|
@ -0,0 +1,5 @@
|
|||
test_popen2
|
||||
testing popen2...
|
||||
testing popen3...
|
||||
All OK
|
||||
|
17
Lib/test/test_popen2.py
Normal file
17
Lib/test/test_popen2.py
Normal file
|
@ -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()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue