# HG changeset patch # User Boris Feld # Date 1500165494 -7200 # 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 -r 460733327640 -r e07c5740eaaa tests/test-strip.t --- a/tests/test-strip.t Sat Jul 15 23:49:22 2017 +0200 +++ b/tests/test-strip.t Sun Jul 16 02:38:14 2017 +0200 @@ -928,7 +928,7 @@ > 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)