I'm not sure if it's a Python bug or a Django bug.
Here are two examples of failures in the test suite:
{{{
======================================================================
ERROR: test_avoid_infinite_loop_on_too_many_subqueries
(queries.tests.Queries1Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«PKGBUILDDIR»/tests/queries/tests.py", line 393, in
test_avoid_infinite_loop_on_too_many_subquer
ies
with self.assertRaisesMessage(RuntimeError, msg):
File "/«PKGBUILDDIR»/django/test/testcases.py", line 582, in
assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/«PKGBUILDDIR»/django/utils/six.py", line 643, in
assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
File "/usr/lib/python2.7/unittest/case.py", line 995, in
assertRaisesRegexp
callable_obj(*args, **kwargs)
TypeError: 'NoneType' object is not callable
======================================================================
FAIL: test_recipients_as_string (mail.tests.MailTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/«PKGBUILDDIR»/tests/mail/tests.py", line 115, in
test_recipients_as_string
with self.assertRaisesMessage(TypeError, '"to" argument must be a list
or tuple'):
File "/«PKGBUILDDIR»/django/test/testcases.py", line 582, in
assertRaisesMessage
re.escape(expected_message), callable_obj, *args, **kwargs)
File "/«PKGBUILDDIR»/django/utils/six.py", line 643, in
assertRaisesRegex
return getattr(self, _assertRaisesRegex)(*args, **kwargs)
AssertionError: "\"to\"\ argument\ must\ be\ a\ list\ or\ tuple" does not
match "'NoneType' object is not callable"
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24827>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => fixed
* needs_tests: => 0
* needs_docs: => 0
Comment:
Thanks for the report, but I think this has been reverted in Python:
https://bugs.python.org/issue24134
--
Ticket URL: <https://code.djangoproject.com/ticket/24827#comment:1>