From 520af9d76784b364e8f442f792bd9589861bc851 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 14 Mar 2019 19:19:17 +0100 Subject: [PATCH] pdb: post_mortem: use super() This is good practice in general, and I've seen it cause problems (MRO) with pdb++. --- src/_pytest/debugging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_pytest/debugging.py b/src/_pytest/debugging.py index 6d51ec59c..5b780d101 100644 --- a/src/_pytest/debugging.py +++ b/src/_pytest/debugging.py @@ -263,9 +263,9 @@ def _find_last_non_hidden_frame(stack): def post_mortem(t): - class Pdb(pytestPDB._pdb_cls): + class Pdb(pytestPDB._pdb_cls, object): def get_stack(self, f, t): - stack, i = pdb.Pdb.get_stack(self, f, t) + stack, i = super(Pdb, self).get_stack(f, t) if f is None: i = _find_last_non_hidden_frame(stack) return stack, i