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

Fully test the C implementation of the PickleCache #105

Merged
merged 1 commit into from
Nov 12, 2018
Merged

Conversation

jamadden
Copy link
Member

Fix discrepancies between it and the Python implementation:

  • The C implementation now raises ValueError instead of AssertionError for certain types of bad inputs.
  • The Python implementation uses the C wording for error messages.
  • The C implementation properly implements IPickleCache; methods unique to the Python implementation were moved to IExtendedPickleCache.
  • The Python implementation raises AttributeError if a persistent class doesn't have a p_jar attribute.

Fixes #102

Fix discrepancies between it and the Python implementation:

  - The C implementation now raises ``ValueError`` instead of
    ``AssertionError`` for certain types of bad inputs.
  - The Python implementation uses the C wording for error messages.
  - The C implementation properly implements ``IPickleCache``; methods
    unique to the Python implementation were moved to
    ``IExtendedPickleCache``.
  - The Python implementation raises ``AttributeError`` if a
    persistent class doesn't have a ``p_jar`` attribute.

Fixes #102
@jamadden jamadden merged commit 7b7ce08 into master Nov 12, 2018
@jamadden jamadden deleted the issue102 branch November 12, 2018 17:47
@jamadden
Copy link
Member Author

Thanks! (FWIW, I also ran the ZODB tests with this without issue.)

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.

2 participants