From fe685cc185f019d8a77c18d195f6a6283b009b89 Mon Sep 17 00:00:00 2001 From: Chen Weihang Date: Fri, 14 Feb 2020 18:15:35 +0800 Subject: [PATCH] fix enforce test error, test=develop (#22610) --- paddle/fluid/platform/enforce_test.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/paddle/fluid/platform/enforce_test.cc b/paddle/fluid/platform/enforce_test.cc index 7e1f62addf..ff0e5d6ff0 100644 --- a/paddle/fluid/platform/enforce_test.cc +++ b/paddle/fluid/platform/enforce_test.cc @@ -89,7 +89,6 @@ TEST(ENFORCE_EQ, EXTRA_MSG_FAIL) { } catch (paddle::platform::EnforceNotMet& error) { caught_exception = true; std::string ex_msg = error.what(); - EXPECT_TRUE(ex_msg.find("their size not match") != std::string::npos); EXPECT_TRUE( ex_msg.find("Expected a == 1 + 3, but received a:2 != 1 + 3:4.") != std::string::npos); -- GitLab