pdb: post_mortem: use super()
This is good practice in general, and I've seen it cause problems (MRO) with pdb++.
This commit is contained in:
parent
951e07d71d
commit
520af9d767
|
@ -263,9 +263,9 @@ def _find_last_non_hidden_frame(stack):
|
||||||
|
|
||||||
|
|
||||||
def post_mortem(t):
|
def post_mortem(t):
|
||||||
class Pdb(pytestPDB._pdb_cls):
|
class Pdb(pytestPDB._pdb_cls, object):
|
||||||
def get_stack(self, f, t):
|
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:
|
if f is None:
|
||||||
i = _find_last_non_hidden_frame(stack)
|
i = _find_last_non_hidden_frame(stack)
|
||||||
return stack, i
|
return stack, i
|
||||||
|
|
Loading…
Reference in New Issue