#NEWLINE# def test_package_error( self ) : #NEWLINE# #INDENT# with temp_dir ( ) as script_dir : #NEWLINE# #INDENT# pkg_dir = os . path . join ( script_dir , 'test_pkg' ) #NEWLINE# make_pkg ( launch_name ) #NEWLINE# msg = "'test_pkg' is a package and cannot be directly executed" #NEWLINE# launch_name = _make_launch_script ( script_dir , 'launch' , 'test_pkg' ) #NEWLINE# self . _check_import_error ( launch_name , msg )