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
|
|
@ -36,7 +36,7 @@ def load_tests(loader, tests, ignore):
|
|||
optionflags=doctest.ELLIPSIS|doctest.NORMALIZE_WHITESPACE,
|
||||
))
|
||||
howto_tests = os.path.join(REPO_ROOT, 'Doc/howto/enum.rst')
|
||||
if os.path.exists(howto_tests):
|
||||
if os.path.exists(howto_tests) and sys.float_repr_style == 'short':
|
||||
tests.addTests(doctest.DocFileSuite(
|
||||
howto_tests,
|
||||
module_relative=False,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue