Skip to content

Commit 2781c79

Browse files
hantekdwf
authored andcommitted
remove reduce() in test code
1 parent e4ab038 commit 2781c79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pylearn2/devtools/tests/test_nan_guard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ def test_NanGuardMode():
4545
except AssertionError:
4646
work[2] = True
4747

48-
if not reduce(lambda x, y: x and y, work):
48+
if not (work[0] and work[1] and work[2]):
4949
raise AssertionError("NanGuardMode not working.")

0 commit comments

Comments
 (0)