Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't pickle TestCase instances in test_multiprocessing #54382

Closed
pitrou opened this issue Oct 22, 2010 · 2 comments
Closed

Don't pickle TestCase instances in test_multiprocessing #54382

pitrou opened this issue Oct 22, 2010 · 2 comments
Labels
tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Oct 22, 2010

BPO 10173
Nosy @pitrou, @voidspace
Files
  • tmp.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2010-11-02.23:53:06.702>
    created_at = <Date 2010-10-22.22:36:30.535>
    labels = ['type-bug', 'tests']
    title = "Don't pickle TestCase instances in test_multiprocessing"
    updated_at = <Date 2010-11-02.23:53:06.674>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2010-11-02.23:53:06.674>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-11-02.23:53:06.702>
    closer = 'pitrou'
    components = ['Tests']
    creation = <Date 2010-10-22.22:36:30.535>
    creator = 'pitrou'
    dependencies = []
    files = ['19337']
    hgrepos = []
    issue_num = 10173
    keywords = ['patch']
    message_count = 2.0
    messages = ['119407', '120293']
    nosy_count = 4.0
    nosy_names = ['pitrou', 'jnoller', 'michael.foord', 'asksol']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue10173'
    versions = ['Python 3.1', 'Python 2.7', 'Python 3.2']

    @pitrou
    Copy link
    Member Author

    pitrou commented Oct 22, 2010

    unittest.TestCase instances aren't supposed to be picklable, but test_multiprocessing does it anyway (under Windows). Here is a patch.

    @pitrou pitrou added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Oct 22, 2010
    @pitrou
    Copy link
    Member Author

    pitrou commented Nov 2, 2010

    Committed in r86130 (3.2), r86131 (2.7) and r86132 (3.1).

    @pitrou pitrou closed this as completed Nov 2, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant