Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed an i18n test to use a number that converts consistely from st…

…ring to float on Pythons up to 2.7.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12144 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e0c3cd4d29ccd9c1735c13b7c125b12a1a841d13 1 parent 933b9e8
@kmtracey kmtracey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/regressiontests/i18n/tests.py
View
2  tests/regressiontests/i18n/tests.py
@@ -389,7 +389,7 @@ def test_parse_spec_http_header(self):
self.assertEqual([('en-AU', 1.0)], p('en-AU'))
self.assertEqual([('*', 1.0)], p('*;q=1.00'))
self.assertEqual([('en-AU', 0.123)], p('en-AU;q=0.123'))
- self.assertEqual([('en-au', 0.10000000000000001)], p('en-au;q=0.1'))
+ self.assertEqual([('en-au', 0.5)], p('en-au;q=0.5'))
self.assertEqual([('en-au', 1.0)], p('en-au;q=1.0'))
self.assertEqual([('da', 1.0), ('en', 0.5), ('en-gb', 0.25)], p('da, en-gb;q=0.25, en;q=0.5'))
self.assertEqual([('en-au-xx', 1.0)], p('en-au-xx'))
Please sign in to comment.
Something went wrong with that request. Please try again.