Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str TryFinally body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Str TryFinally body Expr Call AttributeLoad NameLoad attr Str finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A os.path op bento.distutils.tests.common DistutilsCommandTestBase bento.distutils.dist BentoDistribution bento.distutils.commands.build build TestBuildCommand N/A DistutilsCommandTestBase N/A test_hook N/A N/A self N/A N/A N/A Test hook is executed at all in distutils compat mode. N/A fid N/A open N/A N/A op join N/A self new_cwd bento.info wt N/A N/A N/A N/A N/A fid write Name: foo
HookFile: bscript
 N/A N/A N/A N/A fid close N/A fid N/A open N/A N/A op join N/A self new_cwd bscript wt N/A N/A N/A N/A N/A fid write from bento.commands import hooks

@hooks.pre_build
def pre_build(context):
    raise ValueError()
 N/A N/A N/A N/A fid close N/A dist N/A BentoDistribution N/A cmd N/A build dist N/A N/A N/A cmd ensure_finalized N/A N/A N/A self assertRaises ValueError N/A cmd run N/A N/A