Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

retry: wrapping plain functions fails on Python 2.7 #36

Closed

Description

@tseaver

functools.wraps loses metadata under Python 2.7, and therefore breaks pytest fixture injection. See also pytest-dev/pytest#2782, which recommends using six.wraps instead under Python 2.7.

Activity

  1. added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Jun 25, 2021
  2. self-assigned this
    on Jun 25, 2021
  3. added 2 commits that reference this issue on Jun 25, 2021
    2c2ed34
    8cf30fc
  4. added a commit that references this issue on Jun 29, 2021
    701c3a4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions