'Test cleanup for a initialized but never iterated (never call next())
generator.'

def test_nrt_gen0_no_iter(self):

    pygen = nrt_gen0
    cgen = jit(nopython=True)(pygen)
    py_ary = np.arange(1)
    c_ary = py_ary.copy()
    py_iter = pygen(py_ary)
    c_iter = cgen(c_ary)
    del py_iter
    del c_iter
    np.testing.assert_equal(py_ary, c_ary)
    self.assertEqual(sys.getrefcount(py_ary), sys.getrefcount(c_ary))
