#NEWLINE# def test_package_compiled( self ) : #NEWLINE# #INDENT# with temp_dir ( ) as script_dir : #NEWLINE# #INDENT# pkg_dir = os . path . join ( script_dir , 'test_pkg' ) #NEWLINE# make_pkg ( pkg_dir ) #NEWLINE# script_name = _make_test_script ( pkg_dir , '__main__' ) #NEWLINE# compiled_name = py_compile . compile ( script_name , doraise = True ) #NEWLINE# os . remove ( script_name ) #NEWLINE# pyc_file = support . make_legacy_pyc ( script_name ) #NEWLINE# launch_name = _make_launch_script ( script_dir , 'launch' , 'test_pkg' ) #NEWLINE# self . _check_script ( launch_name , pyc_file , pyc_file , script_dir , 'test_pkg' , importlib . machinery . SourcelessFileLoader )