From 9041b1addffba0789a0ae7048691f6220ea40b1b Mon Sep 17 00:00:00 2001 From: Karen Tracey Date: Sat, 9 Jan 2010 21:03:25 +0000 Subject: [PATCH] [1.1.X] Changed an i18n test to use a number that converts consistely from string to float on Pythons up to 2.7. r12144 from trunk, backported to the doctest version where the change is needed for the test to pass on Python 2.7 alpha 2. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12145 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/i18n/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regressiontests/i18n/misc.py b/tests/regressiontests/i18n/misc.py index f8f35ad4e4..7a82af0050 100644 --- a/tests/regressiontests/i18n/misc.py +++ b/tests/regressiontests/i18n/misc.py @@ -18,8 +18,8 @@ Good headers. [('*', 1.0)] >>> p('en-AU;q=0.123') [('en-AU', 0.123)] ->>> p('en-au;q=0.1') -[('en-au', 0.10000000000000001)] +>>> p('en-au;q=0.5') +[('en-au', 0.5)] >>> p('en-au;q=1.0') [('en-au', 1.0)] >>> p('da, en-gb;q=0.25, en;q=0.5')