changeset 26497:ca778cbe94f3

test-fncache: use args/kwargs for lock wrapper This is annoying to keep up to date, and also just plain unnecessary.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 06 Oct 2015 15:55:50 -0700
parents b885ab9ca182
children e8564e04382d
files tests/test-fncache.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-fncache.t	Tue Oct 06 15:07:00 2015 -0400
+++ b/tests/test-fncache.t	Tue Oct 06 15:55:50 2015 -0700
@@ -205,10 +205,10 @@
   > from mercurial import commands, util
   > from mercurial.extensions import wrapfunction
   > 
-  > def lockexception(orig, vfs, lockname, wait, releasefn, acquirefn, desc, parentenvvar=None):
+  > def lockexception(orig, vfs, lockname, wait, releasefn, *args, **kwargs):
   >     def releasewrap():
   >         raise util.Abort("forced lock failure")
-  >     return orig(vfs, lockname, wait, releasewrap, acquirefn, desc)
+  >     return orig(vfs, lockname, wait, releasewrap, *args, **kwargs)
   > 
   > def reposetup(ui, repo):
   >     wrapfunction(repo, '_lock', lockexception)