#NEWLINE# def test_script_compiled( self ) : #NEWLINE# #INDENT# with temp_dir ( ) as script_dir : #NEWLINE# #INDENT# script_name = _make_test_script ( script_dir , 'script' ) #NEWLINE# py_compile . compile ( script_name , doraise = True ) #NEWLINE# os . remove ( script_name ) #NEWLINE# pyc_file = support . make_legacy_pyc ( script_name ) #NEWLINE# self . _check_script ( pyc_file , pyc_file , script_dir , script_dir , None , importlib . machinery . SourcelessFileLoader )