mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
[3.14] gh-128051: Fix tests if sys.float_repr_style is 'legacy' (GH-135908) (#136025)
gh-128051: Fix tests if sys.float_repr_style is 'legacy' (GH-135908)
(cherry picked from commit f3aec60d7a)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
a168c77536
commit
33c83cea07
16 changed files with 50 additions and 44 deletions
|
|
@ -615,9 +615,9 @@ def test_float_default(self):
|
|||
self.parser.add_option(
|
||||
"-p", "--prob",
|
||||
help="blow up with probability PROB [default: %default]")
|
||||
self.parser.set_defaults(prob=0.43)
|
||||
self.parser.set_defaults(prob=0.25)
|
||||
expected_help = self.help_prefix + \
|
||||
" -p PROB, --prob=PROB blow up with probability PROB [default: 0.43]\n"
|
||||
" -p PROB, --prob=PROB blow up with probability PROB [default: 0.25]\n"
|
||||
self.assertHelp(self.parser, expected_help)
|
||||
|
||||
def test_alt_expand(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue