mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-128051: Fix tests if sys.float_repr_style is 'legacy' (#135908)
(cherry picked from commit f3aec60d7a
)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
This commit is contained in:
parent
008c8cafed
commit
b5fafc3ab9
15 changed files with 49 additions and 43 deletions
|
@ -78,8 +78,8 @@ class SequenceMatcher:
|
|||
sequences. As a rule of thumb, a .ratio() value over 0.6 means the
|
||||
sequences are close matches:
|
||||
|
||||
>>> print(round(s.ratio(), 3))
|
||||
0.866
|
||||
>>> print(round(s.ratio(), 2))
|
||||
0.87
|
||||
>>>
|
||||
|
||||
If you're only interested in where the sequences match,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue