diff options
Diffstat (limited to 'googletest/test/googletest-fail-if-no-test-linked-test.py')
-rwxr-xr-x | googletest/test/googletest-fail-if-no-test-linked-test.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/googletest/test/googletest-fail-if-no-test-linked-test.py b/googletest/test/googletest-fail-if-no-test-linked-test.py index f5854ba..e62bfb2 100755 --- a/googletest/test/googletest-fail-if-no-test-linked-test.py +++ b/googletest/test/googletest-fail-if-no-test-linked-test.py @@ -80,11 +80,7 @@ class GTestFailIfNoTestLinkedTest(gtest_test_utils.TestCase): ) ) warning_file_contents = open(warning_file, "r").read() - self.assertEqual( - warning_file_contents, - "This test program does NOT link in any test case. Please make sure" - " this is intended.\n", - ) + self.assertIn("does NOT link", warning_file_contents) def testFailsIfNoTestLinkedAndFlagSpecified(self): """Tests the behavior of no test linked and flag specified.""" |