def test_ocl_interpolate_flow_refcnt(self):
        # sys.getrefcnt is generally one higher than expected
        frs = self.ocl_inter_method(1)
        self.assertEqual(sys.getrefcount(frs),1+1)
        self.assertEqual(sys.getrefcount(frs[0]),1+1)
        frs = self.ocl_inter_method(2)
        self.assertEqual(sys.getrefcount(frs),1+1)
        self.assertEqual(sys.getrefcount(frs[0]),1+1)
        self.assertEqual(sys.getrefcount(frs[1]),1-1)
dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py/InterpolateFlowTestCase.test_ocl_interpolate_flow_refcnt/operator `+` -> `-`