def test_farneback_optical_flow_refcnt(self):
        # sys.getrefcnt is generally one higher than expected.
        # creating an object is +1 refcnt. passing the object to
        # sys.getrefcount creates a temporary reference as an
        # argument is another + 1 refcnt
        u,v = ocl_farneback_optical_flow(
            self.fr_1_gr,self.fr_2_gr,0.5,3,15,3,7,1.5,False,0)
        self.assertEqual(sys.getrefcount(u), 1+1)
        self.assertEqual(sys.getrefcount(v), 1+1)
dataset/ETHPy150Open dthpham/butterflow/tests/test_motion.py/OpticalFlowTestCase.test_farneback_optical_flow_refcnt/original