Issue 23392: Add tests for marshal FILE* API (original) (raw)

Marshal C API functions that works with FILE* (PyMarshal_WriteLongToFile, PyMarshal_WriteObjectToFile, PyMarshal_ReadLongFromFile, PyMarshal_ReadShortFromFile, PyMarshal_ReadObjectFromFile, PyMarshal_ReadLastObjectFromFile) are not used now in CPython and are not tested. Proposed patch adds tests for them.