diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py index 14c38da1c..feb69f9e6 100644 --- a/_pytest/_code/code.py +++ b/_pytest/_code/code.py @@ -235,7 +235,7 @@ class TracebackEntry(object): except KeyError: return False - if callable(tbh): + if py.builtin.callable(tbh): return tbh(self._excinfo) else: return tbh