[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
This commit is contained in:
Karen Tracey 2010-01-09 21:03:25 +00:00
parent 03d57f0a82
commit 9041b1addf
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ Good headers.
[('*', 1.0)] [('*', 1.0)]
>>> p('en-AU;q=0.123') >>> p('en-AU;q=0.123')
[('en-AU', 0.123)] [('en-AU', 0.123)]
>>> p('en-au;q=0.1') >>> p('en-au;q=0.5')
[('en-au', 0.10000000000000001)] [('en-au', 0.5)]
>>> p('en-au;q=1.0') >>> p('en-au;q=1.0')
[('en-au', 1.0)] [('en-au', 1.0)]
>>> p('da, en-gb;q=0.25, en;q=0.5') >>> p('da, en-gb;q=0.25, en;q=0.5')