summaryrefslogtreecommitdiffstats
path: root/googletest/test/googletest-fail-if-no-test-linked-test.py
diff options
context:
space:
mode:
Diffstat (limited to 'googletest/test/googletest-fail-if-no-test-linked-test.py')
-rwxr-xr-xgoogletest/test/googletest-fail-if-no-test-linked-test.py6
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."""