diff --git a/paddle/fluid/platform/enforce_test.cc b/paddle/fluid/platform/enforce_test.cc index 7e1f62addf27c3085323a624b65d5f4e4c236d7d..ff0e5d6ff0c49a0e4793fc2eb274e0ef5ef3502d 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);