Skip to content

retry: wrapping plain functions fails on Python 2.7 #36

@tseaver

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.

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