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

Add test script for py3 migration #11

Open
frisi opened this issue Oct 5, 2018 · 2 comments
Open

Add test script for py3 migration #11

frisi opened this issue Oct 5, 2018 · 2 comments

Comments

@frisi
Copy link
Member

frisi commented Oct 5, 2018

After running python2 bin/zopeupdate --convert-py3 it would make sense to check if all database records can be unpickled w/o errors under python3

so run `zodbupdate --test-convert-py3``under python3 and list all oids, serials, classnames for pickles that lead to a UnicodeDecoreError.

@thefunny42 already did something similar that we can adapt and reuse in mdtools.relstorage: https://github.com/minddistrict/mdtools.relstorage/tree/master/src/mdtools/relstorage/search.py

@thefunny42
Copy link
Member

This can leave in this repository, but that should be a different script I believe. As I repeat, zodbupdate is not just a Python3 migration tool.

@icemac
Copy link
Member

icemac commented May 9, 2019

This may be a good point to promote https://github.com/plone/zodbverify which may be really helpful here.

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