Skip to content

Commit aa87395

Browse files
committed
Use py.builtin.callable
This restores compatibility with Python 3.0/3.1
1 parent 7516054 commit aa87395

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_pytest/_code/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def ishidden(self):
235235
except KeyError:
236236
return False
237237

238-
if callable(tbh):
238+
if py.builtin.callable(tbh):
239239
return tbh(self._excinfo)
240240
else:
241241
return tbh

0 commit comments

Comments
 (0)