#NEWLINE# def testImporterAttr( self ) : #NEWLINE# #INDENT# src = 'if 1:  # indent hack\n        def get_file():\n            return __file__\n        if __loader__.get_data("some.data") != b"some data":\n            raise AssertionError("bad data")\n' #NEWLINE# pyc = make_pyc ( compile ( src , '<???>' , 'exec' ) , NOW , len ( src ) ) #NEWLINE# files = { #NEWLINE# #INDENT# ( TESTMOD + pyc_ext ) : ( NOW , pyc ) , #NEWLINE# 'some.data' : ( NOW , 'some data' ) , #NEWLINE# #UNINDENT# } #NEWLINE# self . doTest ( pyc_ext , files , TESTMOD )