#NEWLINE# def test_dotdot_in_source_file_names( ) : #NEWLINE# #INDENT# extra_c_source = udir . join ( 'extra_test_dotdot_in_source_file_names.c' ) #NEWLINE# extra_c_source . write ( 'const int external_foo = 42;\n' ) #NEWLINE# ffi = FFI ( ) #NEWLINE# ffi . cdef ( 'const int external_foo;' ) #NEWLINE# lib = verify ( ffi , 'test_dotdot_in_source_file_names' , '\n        extern const int external_foo;\n    ' , sources = [ os . path . join ( os . path . dirname ( str ( extra_c_source ) ) , 'foobar' , '..' , os . path . basename ( str ( extra_c_source ) ) ) ] ) #NEWLINE# assert ( lib . external_foo == 42 )