diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 16:23:43 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 16:23:43 (GMT) |
commit | e13dc3e6d5448668bbe9adae3ea141964f829e0b (patch) | |
tree | 75ce5c8d30bc05532dda9efd45675324645a082f /Lib/fractions.py | |
parent | 12adc655c8e1e8a620f99142a2fb6e2500d4931a (diff) | |
download | cpython-e13dc3e6d5448668bbe9adae3ea141964f829e0b.zip cpython-e13dc3e6d5448668bbe9adae3ea141964f829e0b.tar.gz cpython-e13dc3e6d5448668bbe9adae3ea141964f829e0b.tar.bz2 |
Issue #7379: Fix incorrect doctest for Fraction.limit_denominator.
Diffstat (limited to 'Lib/fractions.py')
-rwxr-xr-x | Lib/fractions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/fractions.py b/Lib/fractions.py index cc3ec11..a934389 100755 --- a/Lib/fractions.py +++ b/Lib/fractions.py @@ -164,8 +164,8 @@ class Fraction(Rational): Fraction(22, 7) >>> Fraction('3.141592653589793').limit_denominator(100) Fraction(311, 99) - >>> Fraction(1234, 5678).limit_denominator(10000) - Fraction(1234, 5678) + >>> Fraction(4321, 8765).limit_denominator(10000) + Fraction(4321, 8765) """ # Algorithm notes: For any real number x, define a *best upper |