Commits


Dane Pitkin authored and GitHub committed 175b2a2fe2d
GH-37254: [Python] Parametrize all pickling tests to use both the pickle and cloudpickle modules (#37255) ### Rationale for this change Cloudpickle was not tested in most parts of the pyarrow test suite. Improving this coverage will make the Cython 3.0.0 upgrade cleaner as cloudpickle was failing in a few places where the default pickle module was not. This has been verified using Cython 0.29.36. ### What changes are included in this PR? * `__reduce__` methods that need to pass kwargs have been changed from classmethod to staticmethod * All pytests that pickle objects are parameterized to use both `pickle` and `cloudpickle` ### Are these changes tested? Yes, pytests run successfully with Cython 0.29.36 ### Are there any user-facing changes? No. * Closes: #37254 Authored-by: Dane Pitkin <dane@voltrondata.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>