Skip to content

Add tests for pickling and copying PyStructSequence objects #110267

Closed

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

Activity

  1. added
    testsTests in the Lib/test dir
    3.11only security fixes
    3.12only security fixes
    3.13only security fixes
    on Oct 3, 2023
  2. added a commit that references this issue on Oct 3, 2023
  3. added 2 commits that reference this issue on Oct 3, 2023
  4. added 2 commits that reference this issue on Oct 4, 2023
  5. added a commit that references this issue on Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions