From 3107318007d35b120f39b4520d0b40819d817d69 Mon Sep 17 00:00:00 2001 From: minqiyang Date: Fri, 27 Jul 2018 00:10:33 +0800 Subject: [PATCH] Remove the overfix of next in unittest --- .../fluid/tests/unittests/test_dynrnn_gradient_check.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/tests/unittests/test_dynrnn_gradient_check.py b/python/paddle/fluid/tests/unittests/test_dynrnn_gradient_check.py index 5b204a1ed6e..7756885166c 100644 --- a/python/paddle/fluid/tests/unittests/test_dynrnn_gradient_check.py +++ b/python/paddle/fluid/tests/unittests/test_dynrnn_gradient_check.py @@ -30,12 +30,12 @@ class Memory(object): assert val.dtype == self.ex.dtype self.cur = val - def __next__(self): + def next(self): self.ex = self.cur self.cur = None def __next__(self): - next(self) + self.next() def reset(self): self.ex = numpy.zeros(shape=self.ex.shape, dtype=self.ex.dtype) -- GitLab