Skip to content

Commit 6342ede

Browse files
committed
Comments for compat.wraps requirement
1 parent 6857416 commit 6342ede

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/compat/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,9 @@ def callable(obj):
365365
return any("__call__" in klass.__dict__ for klass in type(obj).__mro__)
366366

367367

368-
if sys.version_info[0:2] < (3, 4):
368+
if sys.version_info[0] < 3:
369+
# In PY2 functools.wraps doesn't provide metadata pytest needs to generate
370+
# decorated tests using parametrization. See pytest GH issue #2782
369371
def wraps(wrapped, assigned=functools.WRAPPER_ASSIGNMENTS,
370372
updated=functools.WRAPPER_UPDATES):
371373
def wrapper(f):

0 commit comments

Comments
 (0)