Mercurial > hg
changeset 33540:e07c5740eaaa
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.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Sun, 16 Jul 2017 02:38:14 +0200 |
parents | 460733327640 |
children | b47fef6d2365 |
files | tests/test-strip.t |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)