# HG changeset patch # User Boris Feld # Date 2017-07-16 00:38:14 # Node ID e07c5740eaaae382cf62f4cafb0025536dccf316 # Parent 460733327640dcb11f01b00325c91609fc58313f test-strip: fix call to super class in crashstriprepo The 'self' argument is already taken care of by the 'super(...)' call. Instead we were passing the repository instance as the 'desc' value. This got discovered by breaking the next changeset. diff --git a/tests/test-strip.t b/tests/test-strip.t --- a/tests/test-strip.t +++ b/tests/test-strip.t @@ -928,7 +928,7 @@ Error during post-close callback of the > def reposetup(ui, repo): > class crashstriprepo(repo.__class__): > def transaction(self, desc, *args, **kwargs): - > tr = super(crashstriprepo, self).transaction(self, desc, *args, **kwargs) + > tr = super(crashstriprepo, self).transaction(desc, *args, **kwargs) > if desc == 'strip': > def crash(tra): raise error.Abort('boom') > tr.addpostclose('crash', crash)