mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
e23518fa96
commit
f3aec60d7a
16 changed files with 50 additions and 44 deletions
|
|
@ -795,6 +795,8 @@ def test_format(self):
|
|||
self.assertRaises(ValueError, format, x, '.6,n')
|
||||
|
||||
@support.requires_IEEE_754
|
||||
@unittest.skipUnless(sys.float_repr_style == 'short',
|
||||
"applies only when using short float repr style")
|
||||
def test_format_testfile(self):
|
||||
with open(format_testfile, encoding="utf-8") as testfile:
|
||||
for line in testfile:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue