Skip to content

Commit

Permalink
Use py.builtin.callable
Browse files Browse the repository at this point in the history
This restores compatibility with Python 3.0/3.1
  • Loading branch information
The-Compiler committed Apr 20, 2016
1 parent 7516054 commit aa87395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pytest/_code/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def ishidden(self):
except KeyError:
return False

if callable(tbh):
if py.builtin.callable(tbh):
return tbh(self._excinfo)
else:
return tbh
Expand Down

0 comments on commit aa87395

Please sign in to comment.