Skip to content

Add tests for pickling and copying PyStructSequence objects #110267

Closed
@serhiy-storchaka

Description

@serhiy-storchaka

PyStructSequence supports pickling and copying, but there are no tests for this. There is only one trivial test which tests that __reduce__() does not raise exception or crash.

Needed explicit tests for copy.copy(), copy.deepcopy() (it is the same, but still), pickle.dumps()/pickle.loads().

cc @XuehaiPan

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.11only security fixes3.12only security fixes3.13bugs and security fixeseasytestsTests in the Lib/test dir

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions