Skip to content
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

jsonpickle_test.JSONPickleTestCase.test_ordered_dict() error with Python 3.4 #68

Closed
Arfrever opened this issue Mar 22, 2014 · 0 comments

Comments

@Arfrever
Copy link

jsonpickle_test.JSONPickleTestCase.test_ordered_dict() triggers error with Python 3.4. This problem does not occur with older versions of Python.

======================================================================
ERROR: test_ordered_dict (jsonpickle_test.JSONPickleTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/jsonpickle/tests/jsonpickle_test.py", line 909, in test_ordered_dict
    decoded = jsonpickle.decode(encoded)
  File "/tmp/jsonpickle/jsonpickle/__init__.py", line 153, in decode
    return unpickler.decode(string, backend=backend, keys=keys)
  File "/tmp/jsonpickle/jsonpickle/unpickler.py", line 25, in decode
    return context.restore(backend.decode(string), reset=reset)
  File "/tmp/jsonpickle/jsonpickle/unpickler.py", line 76, in restore
    return self._restore(obj)
  File "/tmp/jsonpickle/jsonpickle/unpickler.py", line 99, in _restore
    return restore(obj)
  File "/tmp/jsonpickle/jsonpickle/unpickler.py", line 126, in _restore_object
    instance = handler(self).restore(obj)
  File "/tmp/jsonpickle/jsonpickle/handlers.py", line 145, in restore
    factory, args = [restore(i, reset=False) for i in obj['__reduce__']]
ValueError: too many values to unpack (expected 2)

======================================================================
@davvid davvid closed this as completed in 2a5faa8 Mar 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant