Comment 0 for bug 1311433

Revision history for this message
Julian Edwards (julian-edwards) wrote :

This seems to be a regression introduced in the latest security update which is causing the error

    AttributeError: 'functools.partial' object has no attribute '__module__'

in the MAAS test suite.

Full stack trace:

_StringException: Traceback (most recent call last):
  File "/home/ed/canonical/maas/trunk/src/maasserver/tests/test_api.py", line 477, in test_internal_error_generates_proper_api_response
    response = self.client.post(reverse('nodes_handler'), {'op': 'new'})
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 528, in reverse
    return iri_to_uri(resolver._reverse_with_prefix(view, prefix, *args, **kwargs))
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 399, in _reverse_with_prefix
    self._populate()
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate
    for name in pattern.reverse_dict:
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict
    self._populate()
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 286, in _populate
    for name in pattern.reverse_dict:
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 311, in reverse_dict
    self._populate()
  File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 272, in _populate
    lookup_str = callback.__module__ + "." + callback.__class__.__name__
AttributeError: 'functools.partial' object has no attribute '__module__'