Skip to content

Commit eca72dc

Browse files
committed
fix ut
1 parent 2db99bf commit eca72dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/paddle/fluid/tests/unittests/interpreter/test_standalone_executor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,7 @@ def test_exception(self):
288288
}, {
289289
'id': np.array([1, 2, 3, 4, 11]).astype(np.int64)
290290
}]
291-
out = self.run_new_executor(feed)
292-
return out
291+
self.assertRaises(ValueError, self.run_new_executor, feed)
293292

294293

295294
if __name__ == "__main__":

0 commit comments

Comments
 (0)