Skip to content

Add test coverage for concurrent set.pop() calls #158093

Description

@CaQtiml

This test aims for a free-threaded Python.

Testcases in Lib/test/test_free_threading/test_set.py do not cover a case where several threads pop from the same set. So, I want to add a test where .pop is called by several threads on the same set.

My test checks whether the original items are returned exactly once (no duplicates) and the popped set ends up empty.

This is my first time contributing to CPython, so I welcome any advice! I will create a PR soon.

Linked PRs

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions