#NEWLINE# def test_cases( ) : #NEWLINE# #INDENT# from copy import deepcopy #NEWLINE# here_dir = os . path . dirname ( os . path . abspath ( __file__ ) ) #NEWLINE# if ( not ( 'sp2b' in here_dir ) ) : #NEWLINE# #INDENT# os . chdir ( ( here_dir + '/sp2b' ) ) #NEWLINE# #UNINDENT# for ( idx , testFile ) in enumerate ( glob ( 'queries/*.sparql' ) ) : #NEWLINE# #INDENT# if ( idx in [ 5 , 6 ] ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# gname = testFile . split ( 'queries/' ) [ 1 ] [ : ( - 7 ) ] . translate ( maketrans ( '-/' , '__' ) ) #NEWLINE# e = Envelope ( gname , testFile ) #NEWLINE# if ( gname in skiptests ) : #NEWLINE# #INDENT# e . skip = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# e . skip = False #NEWLINE# #UNINDENT# if ( sys . version_info [ : 2 ] == ( 2 , 4 ) ) : #NEWLINE# #INDENT# import pickle #NEWLINE# gjt = pickle . dumps ( generictest ) #NEWLINE# gt = pickle . loads ( idx ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# gt = deepcopy ( generictest ) #NEWLINE# #UNINDENT# gt . __doc__ = testFile #NEWLINE# ( yield ( gt , e ) )