]> granicus.if.org Git - python/commit
bpo-37210: Fix pure Python pickle when _pickle is unavailable (GH-14016)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 13 Jun 2019 12:28:11 +0000 (05:28 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Jun 2019 12:28:11 +0000 (05:28 -0700)
commitcbda40db7b604b377acfd3f04e19407ca33748a7
treea12c2b3e080125d59438e6cbdd6588e32e4e85ae
parente40a97a721d46307dfdc2b0322028ccded6eb571
bpo-37210: Fix pure Python pickle when _pickle is unavailable (GH-14016)

Allow pure Python implementation of pickle to work
even when the C _pickle module is unavailable.

Fix test_pickle when _pickle is missing: declare PyPicklerHookTests
outside "if has_c_implementation:" block.
(cherry picked from commit 63ab4ba07b492448844940c347787ba30735b7f2)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
Lib/pickle.py
Lib/test/test_pickle.py
Misc/NEWS.d/next/Library/2019-06-12-16-10-50.bpo-37210.r4yMg6.rst [new file with mode: 0644]