@pytest.yield_fixture(autouse=True)
def imp_env(xonsh_execer):
 load_builtins(execer=xonsh_execer)
 builtins.__xonsh_env__ = Env({'PATH': [], 'PATHEXT': []})
 (yield)
 unload_builtins()

@ pytest . yield_fixture ( autouse = True ) def imp_env ( xonsh_execer ) : load_builtins ( execer = xonsh_execer ) builtins . __xonsh_env__ = Env ( { 'PATH' : [ ] , 'PATHEXT' : [ ] } ) ( yield ) unload_builtins ( )
call load_builtins with xonsh_execer .