mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
#! /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()
 | 
						|
 |