#NEWLINE# @ pytest . mark . parametrize ( 'expr' , exprs ) #NEWLINE# @ pytest . mark . skipif ( ( ( sys . platform == 'win32' ) and ( sys . version_info [ : 2 ] == ( 2 , 7 ) ) ) , reason = 'Nondeterministic exceptions relating to get_async' ) #NEWLINE# def test_compute( expr ) : #NEWLINE# #INDENT# result = compute ( expr , dask_ns ) #NEWLINE# expected = compute ( expr , numpy_ns ) #NEWLINE# assert isinstance ( result , Array ) #NEWLINE# if expr . dshape . shape : #NEWLINE# #INDENT# result2 = np . array ( result ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result2 = float ( result ) #NEWLINE# #UNINDENT# assert eq ( result2 , expected )