#NEWLINE# def test_nrt_gen1( self ) : #NEWLINE# #INDENT# pygen = nrt_gen1 #NEWLINE# cgen = jit ( nopython = True ) ( pygen ) #NEWLINE# py_ary1 = np . arange ( 10 ) #NEWLINE# py_ary2 = ( py_ary1 + 100 ) #NEWLINE# c_ary1 = py_ary1 . copy ( ) #NEWLINE# c_ary2 = py_ary2 . copy ( ) #NEWLINE# py_res = list ( pygen ( py_ary1 , py_ary2 ) ) #NEWLINE# c_res = list ( cgen ( c_ary1 , c_ary2 ) ) #NEWLINE# np . testing . assert_equal ( py_ary1 , c_ary1 ) #NEWLINE# np . testing . assert_equal ( py_ary2 , c_ary2 ) #NEWLINE# self . assertEqual ( py_res , c_res ) #NEWLINE# self . assertEqual ( sys . getrefcount ( py_ary1 ) , sys . getrefcount ( c_ary1 ) ) #NEWLINE# self . assertEqual ( sys . getrefcount ( py_ary2 ) , sys . getrefcount ( c_ary2 ) )