#NEWLINE# @ pytest . yield_fixture #NEWLINE# def complex_csv( tmpdir ) : #NEWLINE# #INDENT# path = os . path . join ( os . path . dirname ( __file__ ) , 'dummydata.csv' ) #NEWLINE# with tmpfile ( '.csv' , dir = tmpdir ) as fn : #NEWLINE# #INDENT# shutil . copy ( path , fn ) #NEWLINE# os . chmod ( fn , 511 ) #NEWLINE# ( yield CSV ( path , has_header = True ) )