#NEWLINE# def test_nrt_gen0_no_iter( self ) : #NEWLINE# #INDENT# '\n        Test cleanup for a initialized but never iterated (never call next())\n        generator.\n        ' #NEWLINE# pygen = nrt_gen0 #NEWLINE# cgen = jit ( nopython = True ) ( pygen ) #NEWLINE# py_ary = np . arange ( 1 ) #NEWLINE# c_ary = py_ary . copy ( ) #NEWLINE# py_iter = pygen ( py_ary ) #NEWLINE# c_iter = cgen ( c_iter ) #NEWLINE# del py_iter #NEWLINE# del c_iter #NEWLINE# np . testing . assert_equal ( py_ary , c_ary ) #NEWLINE# self . assertEqual ( sys . getrefcount ( py_ary ) , sys . getrefcount ( c_ary ) )