#11993: ValueError: Cannot convert NaN to integer in
regressiontests.defaultfilters.tests using Python 2.6.3
---------------------------+------------------------------------------------
Reporter: kklimonda | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.1
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
Automatic rebuild of Django 1.1 on Ubuntu 9.10 has shown that the
following regression test fails on Python 2.6.3:
{{{
======================================================================
FAIL: Doctest: regressiontests.defaultfilters.tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/build/buildd/python-django-1.1/django/test/_doctest.py", line
2180, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for
regressiontests.defaultfilters.tests
File "/build/buildd/python-
django-1.1/tests/regressiontests/defaultfilters/tests.py", line 2, in
tests
----------------------------------------------------------------------
File "/build/buildd/python-
django-1.1/tests/regressiontests/defaultfilters/tests.py", line 53, in
regressiontests.defaultfilters.tests
Failed example:
floatformat(nan) == unicode(nan)
Exception raised:
Traceback (most recent call last):
File "/build/buildd/python-django-1.1/django/test/_doctest.py", line
1267, in __run
compileflags, 1) in test.globs
File "<doctest regressiontests.defaultfilters.tests[26]>", line 1,
in <module>
floatformat(nan) == unicode(nan)
File "/build/buildd/python-
django-1.1/django/template/defaultfilters.py", line 164, in floatformat
m = int(d) - d
File "/usr/lib/python2.6/decimal.py", line 1515, in __int__
raise ValueError("Cannot convert NaN to integer")
ValueError: Cannot convert NaN to integer
----------------------------------------------------------------------
Ran 859 tests in 408.553s
FAILED (failures=1)
}}}
The same happens with the current trunk version.
--
Ticket URL: <http://code.djangoproject.com/ticket/11993>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---