#NEWLINE# @ pytest . mark . xfail ( 'PLAT_IMPL == "PyPy"' ) #NEWLINE# def test_not_picklable_raises_InvalidTask( self ) : #NEWLINE# #INDENT# d1 = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# last = d1 #NEWLINE# for x in range ( 400 ) : #NEWLINE# #INDENT# dn = { #NEWLINE# #INDENT# 'p' : last , #NEWLINE# #UNINDENT# } #NEWLINE# last = dn #NEWLINE# #UNINDENT# d1 [ 'p' ] = last #NEWLINE# def non_top_function( ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# t1 = Task ( 't1' , [ non_top_function , ( d1 , ) ] ) #NEWLINE# pytest . raises ( InvalidTask , runner . JobTask , non_top_function )