Merge pull request #4925 from blueyed/pm-super

pdb: post_mortem: use super()
This commit is contained in:
Daniel Hahler 2019-03-15 00:50:46 +01:00 committed by GitHub
commit 437ff1c01a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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