From faa6e45b6dc7d197f1b5724769ae28aebdadc3ed Mon Sep 17 00:00:00 2001 From: "mark.dickinson" Date: Mon, 23 Nov 2009 16:23:43 +0000 Subject: [PATCH] Issue #7379: Fix incorrect doctest for Fraction.limit_denominator. git-svn-id: http://svn.python.org/projects/python/trunk@76456 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/fractions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/fractions.py b/Lib/fractions.py index cc3ec11055..a934389a37 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 -- 2.11.4.GIT