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

Fixup some invalid pickle testing #924

Merged
merged 1 commit into from
Jul 14, 2022
Merged

Fixup some invalid pickle testing #924

merged 1 commit into from
Jul 14, 2022

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jul 8, 2022

  • cPickle doesn't exist in Python 3+, therefore we can drop
  • examples/pickle_deserialize.py uses StringIO.StringIO which was
    replaced with io.StringIO. However, these calls expect bytes, not str
  • Similarly examples/dill.py using StringIO to be replaced with BytesIO.
    It was also using an instance of an non-existant class name of Undillr
    and not Unpickler.

Signed-off-by: Eric Brown eric_wade_brown@yahoo.com

* cPickle doesn't exist in Python 3+, therefore we can drop
* examples/pickle_deserialize.py uses StringIO.StringIO which was
  replaced with io.StringIO. However, these calls expect bytes, not str
* Similarly examples/dill.py using StringIO to be replaced with BytesIO.
  It was also using an instance of an non-existant class name of Undillr
  and not Unpickler.

Signed-off-by: Eric Brown <eric_wade_brown@yahoo.com>
@ericwb ericwb reopened this Jul 8, 2022
@ericwb ericwb merged commit f352b20 into PyCQA:main Jul 14, 2022
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

Successfully merging this pull request may close these issues.

1 participant