mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -2991,7 +2991,8 @@ class TestType(unittest.TestCase):
|
|||
|
||||
def load_tests(loader, tests, pattern):
|
||||
from doctest import DocTestSuite
|
||||
tests.addTest(DocTestSuite(builtins))
|
||||
if sys.float_repr_style == 'short':
|
||||
tests.addTest(DocTestSuite(builtins))
|
||||
return tests
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue