Ticket #6513: 6513_w_tests.diff
| File 6513_w_tests.diff, 1.0 kB (added by PhiR, 9 months ago) |
|---|
-
django/template/defaultfilters.py
old new 124 124 d = int(arg) 125 125 except ValueError: 126 126 return force_unicode(f) 127 m = f - int(f) 127 try: 128 m = f - int(f) 129 except OverflowError: 130 return force_unicode(f) 128 131 if not m and d < 0: 129 132 return mark_safe(u'%d' % int(f)) 130 133 else: -
tests/regressiontests/defaultfilters/tests.py
old new 39 39 u'' 40 40 >>> floatformat(None) 41 41 u'' 42 >>> floatformat(float('infinity')) 43 u'inf' 44 >>> floatformat(float('nan')) 45 u'nan' 42 46 43 47 >>> addslashes(u'"double quotes" and \'single quotes\'') 44 48 u'\\"double quotes\\" and \\\'single quotes\\\''
