summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2010-01-09 21:03:25 +0000
committerKaren Tracey <kmtracey@gmail.com>2010-01-09 21:03:25 +0000
commit9041b1addffba0789a0ae7048691f6220ea40b1b (patch)
tree6f92b90c575bb905945ad3c35cb39cfabdd3f2e5
parent03d57f0a82fb0997ef66adbab720a5597cbfe78c (diff)
[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
-rw-r--r--tests/regressiontests/i18n/misc.py4
1 files 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')