#NEWLINE# @ chdir_to_tmp #NEWLINE# def test_api_compile_2( self ) : #NEWLINE# #INDENT# ffi = cffi . FFI ( ) #NEWLINE# ffi . set_source ( 'mod_name_in_package.mymod' , '/*code would be here*/' ) #NEWLINE# x = ffi . compile ( 'output' ) #NEWLINE# if ( sys . platform != 'win32' ) : #NEWLINE# #INDENT# sofile = self . check_produced_files ( { #NEWLINE# #INDENT# 'output' : { #NEWLINE# #INDENT# 'mod_name_in_package' : { #NEWLINE# #INDENT# 'mymod.SO' : None , #NEWLINE# 'mymod.c' : None , #NEWLINE# 'mymod.o' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( os . path . isabs ( x ) and os . path . samefile ( x , sofile ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . check_produced_files ( { #NEWLINE# #INDENT# 'output' : { #NEWLINE# #INDENT# 'mod_name_in_package' : { #NEWLINE# #INDENT# 'mymod.SO' : None , #NEWLINE# 'mymod.c' : None , #NEWLINE# #UNINDENT# } , #NEWLINE# 'Release' : '?' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )