#NEWLINE# def is_error_occurred( self , arg ) : #NEWLINE# #INDENT# command = 'python test_parse_args.py {0}' . format ( arg ) #NEWLINE# options = { #NEWLINE# #INDENT# 'stdout' : PIPE , #NEWLINE# 'stderr' : PIPE , #NEWLINE# 'close_fds' : True , #NEWLINE# #UNINDENT# } #NEWLINE# process = Popen ( shlex . split ( command ) , ** options ) #NEWLINE# process . wait ( ) #NEWLINE# return ( not ( process . returncode == 0 ) )