[pypy-issue] [issue1366] Djblets-0.6.22 single test failure under pypy{1.9.2.0}

Ian Delaney tracker at bugs.pypy.org
Mon Jan 14 03:58:47 CET 2013


New submission from Ian Delaney <della5 at iinet.com.au>:

Adding pypy support in Djblets-0.6.22 and running the test suite yields

Testing indent filter ... ok
Testing WebAPIResource with GET and vendor-specific mimetypes ... ERROR
Testing WebAPIResource with vendor-specific mimetypes ... ok
Testing WebAPIResource with vendor-specific and custom mimetypes ... ok

======================================================================
ERROR: Testing WebAPIResource with GET and vendor-specific mimetypes
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/mnt/gen2/TmpDir/portage/dev-python/Djblets-0.6.22/work/Djblets-0.6.22/djblets/webapi/tests.py",
line 122, in test_get_with_vendor_mimetype
    'application/vnd.djblets.testresources+xml')
  File
"/mnt/gen2/TmpDir/portage/dev-python/Djblets-0.6.22/work/Djblets-0.6.22/djblets/webapi/tests.py",
line 149, in _test_mimetype_responses
    **kwargs)
  File
"/mnt/gen2/TmpDir/portage/dev-python/Djblets-0.6.22/work/Djblets-0.6.22/djblets/webapi/tests.py",
line 170, in _test_mimetype_response
    print response
  File "/usr/lib64/pypy1.9/site-packages/django/http/__init__.py", line 592, in
__str__
    + '\n\n' + self.content
  File
"/mnt/gen2/TmpDir/portage/dev-python/Djblets-0.6.22/work/Djblets-0.6.22/djblets/webapi/core.py",
line 281, in _get_content
    content = adapter.encode(self.api_data, request=self.request)
  File
"/mnt/gen2/TmpDir/portage/dev-python/Djblets-0.6.22/work/Djblets-0.6.22/djblets/webapi/core.py",
line 88, in encode
    return super(JSONEncoderAdapter, self).encode(o)
  File "/usr/lib64/pypy1.9/lib-python/2.7/json/encoder.py", line 196, in encode
    self._encode(o, markers, builder, 0)
  File "/usr/lib64/pypy1.9/lib-python/2.7/json/encoder.py", line 239, in _encode
    self._encode_dict(o, markers, builder, _current_indent_level)
  File "/usr/lib64/pypy1.9/lib-python/2.7/json/encoder.py", line 299, in
_encode_dict
    builder.append(self.encoder(key))
TypeError: 'MultiEncoder' object is not callable

Name                                       Stmts   Miss  Cover   Missing
------------------------------------------------------------------------
djblets                                       23     23     0%   34-72
djblets.auth                                   0      0   100%   
djblets.auth.forms                            47     25    47%   48-49, 52-56,
59-77, 88-92
djblets.auth.util                             39     28    28%   44-50, 53-56,
59-74, 77-78, 81-83
djblets.auth.views                            63     52    17%   50-80, 89-121,
128-139, 142-153
djblets.datagrid                               0      0   100%   
djblets.datagrid.grids                       338     57    83%   107-108,
228-241, 259-262, 272, 297-304, 309, 332-333, 336, 470-475, 479-480, 500-502,
515, 557, 563-573, 619, 631, 635-636, 657, 746-759, 768
djblets.datagrid.templatetags                  0      0   100%   
djblets.datagrid.templatetags.datagrid         6      0   100%   
djblets.feedview                               0      0   100%   

So it's actually done pretty well here too.
MultiEncoder is a class defined within djblets/webapi/core.py.

Do you require a full build log?  Just ask if you do, I think this will likely
suffice

----------
messages: 5157
nosy: idella5, pypy-issue
priority: bug
release: 1.9
status: chatting
title: Djblets-0.6.22 single test failure under pypy{1.9.2.0}

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1366>
________________________________________


More information about the pypy-issue mailing list