Skip to content

Commit 3107318

Browse files
committed
Remove the overfix of next in unittest
1 parent 9fc13fd commit 3107318

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/paddle/fluid/tests/unittests/test_dynrnn_gradient_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def update(self, val):
3030
assert val.dtype == self.ex.dtype
3131
self.cur = val
3232

33-
def __next__(self):
33+
def next(self):
3434
self.ex = self.cur
3535
self.cur = None
3636

3737
def __next__(self):
38-
next(self)
38+
self.next()
3939

4040
def reset(self):
4141
self.ex = numpy.zeros(shape=self.ex.shape, dtype=self.ex.dtype)

0 commit comments

Comments
 (0)