Skip to content

Commit

Permalink
gtest_help_test: Delete obsolete helper TestUnknownFlagWithAbseil
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557116814
Change-Id: I91e06b0d6001952366c50201b67491475a1f98af
  • Loading branch information
dinord authored and copybara-github committed Aug 15, 2023
1 parent 7e33b6a commit d76e9e0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions googletest/test/gtest_help_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,6 @@ def TestHelpFlag(self, flag):
else:
self.assertNotIn(DEATH_TEST_STYLE_FLAG, output)

def TestUnknownFlagWithAbseil(self, flag):
"""Verifies correct behavior when an unknown flag is specified.
The right message must be printed and the tests must
skipped when the given flag is specified.
Args:
flag: A flag to pass to the binary or None.
"""
exit_code, output = RunWithFlag(flag)
self.assertEqual(1, exit_code)
self.assertIn('ERROR: Unknown command line flag', output)

def TestNonHelpFlag(self, flag):
"""Verifies correct behavior when no help flag is specified.
Expand Down

0 comments on commit d76e9e0

Please sign in to comment.