Skip to content

gh-155742: Add tests on the PyMarshal C API - #156890

Open
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:testcapi_marshal
Open

gh-155742: Add tests on the PyMarshal C API#156890
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:testcapi_marshal

Conversation

@vstinner

@vstinner vstinner commented Sep 3, 2026

Copy link
Copy Markdown
Member

Add Lib/test/test_capi/test_marshal.py and
Modules/_testcapi/marshal.c files.

Add Lib/test/test_capi/test_marshal.py and
Modules/_testcapi/marshal.c files.
@vstinner

vstinner commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

cc @serhiy-storchaka

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lib/test/test_marshal.py already contains CAPI_TestCase, which tests the same functions with helpers in Modules/_testcapimodule.c -- all except PyMarshal_ReadObjectFromString() and PyMarshal_WriteObjectToString().

@vstinner

vstinner commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

Lib/test/test_marshal.py already contains CAPI_TestCase

Oh no, I missed these tests :-( I will try to merge my tests with these ones.

@serhiy-storchaka

Copy link
Copy Markdown
Member

Look also at #155909.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants