-
-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kombu.tests.test_transport_pyredis.test_Redis.test_publish__get fails (with cjson) #18
Comments
Could you give me the value of
inside the chroot? |
|
This seems to be the culprit, outside the chroot it's I forced the installation of simplejson during build--time inside the chroot and now the test works. Still it would be great if kombu worked with cjson too. |
Just an update on this issue, it's not a bug in kombu but in cjson which fails to properly decode a once encoded json string. This affects the decoding of the content_type of a message, resulting in "application/json" for which no decoder can then be found in _decoders. It is documented in Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=534709 This unittest shows the culprit: |
cjson is not recommended anymore, and anyjson will show a warning if it is the current implementation. |
Running on python-2.6.6 in Debian Squeeze (again inside build-chroot) this unit test fails because the message body is not decoded. Looking at the test with pdb shows that
self.queue(channel).get().payload
returnsu'{"hello": "world"}'
instead of the expected dictionary. Running it outside the chroot does not trigger this problem.The text was updated successfully, but these errors were encountered: