Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451958 - dev-python/Djblets-0.6.22 single test failure under pypy
Summary: dev-python/Djblets-0.6.22 single test failure under pypy
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://bugs.pypy.org/issue1366
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks: 451828
  Show dependency tree
 
Reported: 2013-01-14 02:51 UTC by Ian Delaney (RETIRED)
Modified: 2013-02-21 15:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Delaney (RETIRED) gentoo-dev 2013-01-14 02:51:45 UTC
Adding pypy to the PYTHON_COMPAT 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.
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2013-01-18 05:47:57 UTC
Just a note: the maintainers at pypy have entered a comment for the bug, but it appears that a fix isn't to routinely follow, and it may not come until the next release, which would be the official 2.0 I would guess
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2013-02-21 15:28:42 UTC
Fix came;

  21 Feb 2013; Ian Delaney <idella4@gentoo.org>
  +files/2.0-encoder-3655afd07f2f.patch, pypy-2.0_beta1.ebuild:
  Patch added from pypy.org/issue1366, makes testsuite of Djblets pypy capable
  wrt Bug #451958 , decision not to revbump due to onerous load to rebuild