Skip to content

Commit 437ff1c

Browse files
authored
Merge pull request #4925 from blueyed/pm-super
pdb: post_mortem: use super()
2 parents 951e07d + 520af9d commit 437ff1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_pytest/debugging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ def _find_last_non_hidden_frame(stack):
263263

264264

265265
def post_mortem(t):
266-
class Pdb(pytestPDB._pdb_cls):
266+
class Pdb(pytestPDB._pdb_cls, object):
267267
def get_stack(self, f, t):
268-
stack, i = pdb.Pdb.get_stack(self, f, t)
268+
stack, i = super(Pdb, self).get_stack(f, t)
269269
if f is None:
270270
i = _find_last_non_hidden_frame(stack)
271271
return stack, i

0 commit comments

Comments
 (0)