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

phpserialize doesn't work with Python 3 #2

Open
msabramo opened this issue Oct 25, 2011 · 3 comments
Open

phpserialize doesn't work with Python 3 #2

msabramo opened this issue Oct 25, 2011 · 3 comments

Comments

@msabramo
Copy link
Contributor

I have changes to make it work at:

https://github.com/msabramo/phpserialize/tree/python3.x

$ python -m pytest -x
===================================== test session starts ======================================
platform darwin -- Python 3.2.2 -- pytest-2.1.3
collected 10 items 

tests/test_phpserialize.py ..........

================================== 10 passed in 0.21 seconds ===================================

Obviously, you don't want to pull these changes into master and break Python 2.x compatibility, which is why I didn't send a pull request (I didn't see a way to request that it be pulled into an upstream branch that doesn't exist yet...?).

Cheers,
Marc

@jstasiak
Copy link

It looks like this one can be closed as Python 3 is supported.

@smurfix
Copy link

smurfix commented Aug 18, 2015

no it's not, one test fails

FAIL: test_dumps_dict (tests.PhpSerializeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/mnt/d/src/git/nikola/phpserialize/tests.py", line 36, in test_dumps_dict
    b'a:3:{s:1:"a";i:1;s:1:"c";i:3;s:1:"b";i:2;}')
AssertionError: b'a:3:{s:1:"b";i:2;s:1:"c";i:3;s:1:"a";i:1;}' != b'a:3:{s:1:"a";i:1;s:1:"c";i:3;s:1:"b";i:2;}'

@smurfix
Copy link

smurfix commented Aug 18, 2015

… oops, false negative, that's just dictionary ordering.
Nevertheless,l to be fixed.

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

3 participants