<s> import sys <EOL> from doit . api import run <EOL> def test_execute ( monkeypatch , depfile_name ) : <EOL> monkeypatch . setattr ( sys , '<STR_LIT>' , [ '<STR_LIT>' , '<STR_LIT>' , depfile_name ] ) <EOL> try : <EOL> def hi ( ) : <EOL> print ( '<STR_LIT>' ) <EOL> def task_hi ( ) : <EOL> return { '<STR_LIT>' : [ hi ] } <EOL> run ( locals ( ) ) <EOL> except SystemExit as err : <EOL> assert err . code == <NUM_LIT:0> <EOL> else : <EOL> assert False </s>
