Skip to content

Commit

Permalink
fix argparse formatting related test cases failure for 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dpower4 committed Nov 21, 2024
1 parent 297a229 commit 5f72f51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superbench/benchmarks/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ def get_configurable_settings(self):
Return:
All configurable settings in raw string.
"""
return self._parser.format_help().strip()
message = self._parser.format_help().strip()
# Ensure consistent header across diff python argparse format_help output.
if "options:" in message:
message = message.replace("options:", "optional arguments:")
return message


def parse_args(self, ignore_invalid=False):
"""Parse the arguments.
Expand Down

0 comments on commit 5f72f51

Please sign in to comment.