Author: kmtracey
Date: 2010-01-09 14:57:32 -0600 (Sat, 09 Jan 2010)
New Revision: 12144

Modified:
   django/trunk/tests/regressiontests/i18n/tests.py
Log:
Changed an i18n test to use a number that converts consistely from string to 
float on Pythons up to 2.7.



Modified: django/trunk/tests/regressiontests/i18n/tests.py
===================================================================
--- django/trunk/tests/regressiontests/i18n/tests.py    2010-01-09 20:41:05 UTC 
(rev 12143)
+++ django/trunk/tests/regressiontests/i18n/tests.py    2010-01-09 20:57:32 UTC 
(rev 12144)
@@ -389,7 +389,7 @@
         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'))

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to