test-strip: fix call to super class in crashstriprepo
authorBoris Feld <boris.feld@octobus.net>
Sun, 16 Jul 2017 02:38:14 +0200
changeset 33540 e07c5740eaaa
parent 33539 460733327640
child 33541 b47fef6d2365
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.
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)