<s> import os <EOL> import atexit <EOL> import subprocess <EOL> process = subprocess . Popen ( <EOL> args = ( '<STR_LIT>' , os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT>' ) , ) , <EOL> stdout = subprocess . PIPE , <EOL> stderr = subprocess . STDOUT <EOL> ) <EOL> atexit . register ( lambda _process : _process . kill ( ) , process ) <EOL> output = process . stdout . readline ( ) . decode ( '<STR_LIT:utf-8>' ) <EOL> if output . strip ( ) == '<STR_LIT>' : <EOL> output += process . stdout . readline ( ) . decode ( '<STR_LIT:utf-8>' ) <EOL> if '<STR_LIT>' not in output : <EOL> raise Exception ( '<STR_LIT>' . format ( output ) ) </s>
