Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[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
  • Loading branch information...
commit 9041b1addffba0789a0ae7048691f6220ea40b1b 1 parent 03d57f0
@kmtracey kmtracey authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/i18n/misc.py
View
4 tests/regressiontests/i18n/misc.py
@@ -18,8 +18,8 @@
[('*', 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')
Please sign in to comment.
Something went wrong with that request. Please try again.