--
Ticket URL: <https://code.djangoproject.com/ticket/16514>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:2>
* owner: nobody => kman
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:3>
* owner: kman => anonymous
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:4>
* owner: anonymous => kman
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:5>
* needs_tests: 1 => 0
Comment:
Not sure how to test for warnings, but I think important thing is to test
for nan; Created the test
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:6>
Comment (by DrMeers):
Wouldn't `float('nan')` be better than the magical fomula? kman's test
could be useful to ensure this works across all versions -- though it
shouldn't be nested inside the `test_floatformat` method.
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:7>
Comment (by kman):
Removed the test completely (b/c it's nested ) and it seems a bit
superflous. Modified defaultFilters.py line 91 to be: nan = float('nan')
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:8>
* stage: Accepted => Ready for checkin
Comment:
Ah; see the notes in defaultfilter.py regarding "Python Issue757815 and
Issue1080440" -- let's just go with the '''classic_division_fix.diff'''
for now until we get past python 2.5/2.6.
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:9>
* status: new => closed
* resolution: => fixed
Comment:
In [16649]:
{{{
#!CommitTicketReference repository="" revision="16649"
Silenced a "classic division" warning in floatformat template filter.
Fixes #16514. Thanks, Mike Blume.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16514#comment:10>