Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Karen Tracey authored January 09, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/regressiontests/i18n/tests.py
2  tests/regressiontests/i18n/tests.py
@@ -389,7 +389,7 @@ def test_parse_spec_http_header(self):
389 389
         self.assertEqual([('en-AU', 1.0)], p('en-AU'))
390 390
         self.assertEqual([('*', 1.0)], p('*;q=1.00'))
391 391
         self.assertEqual([('en-AU', 0.123)], p('en-AU;q=0.123'))
392  
-        self.assertEqual([('en-au', 0.10000000000000001)], p('en-au;q=0.1'))
  392
+        self.assertEqual([('en-au', 0.5)], p('en-au;q=0.5'))
393 393
         self.assertEqual([('en-au', 1.0)], p('en-au;q=1.0'))
394 394
         self.assertEqual([('da', 1.0), ('en', 0.5), ('en-gb', 0.25)], p('da, en-gb;q=0.25, en;q=0.5'))
395 395
         self.assertEqual([('en-au-xx', 1.0)], p('en-au-xx'))

0 notes on commit e0c3cd4

Please sign in to comment.
Something went wrong with that request. Please try again.