Patchwork [1,of,5] test-fncache: use args/kwargs for lock wrapper

login
register
mail settings
Submitter Siddharth Agarwal
Date Oct. 6, 2015, 11:40 p.m.
Message ID <83230ffce268ede1151e.1444174803@dev6666.prn1.facebook.com>
Download mbox | patch
Permalink /patch/10837/
State Accepted
Headers show

Comments

Siddharth Agarwal - Oct. 6, 2015, 11:40 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1444172150 25200
#      Tue Oct 06 15:55:50 2015 -0700
# Node ID 83230ffce268ede1151ed17ddf4ec773fd7bfb24
# Parent  6561b53da686a3ebe90c0a59b63b9419d91e99c0
test-fncache: use args/kwargs for lock wrapper

This is annoying to keep up to date, and also just plain unnecessary.

Patch

diff --git a/tests/test-fncache.t b/tests/test-fncache.t
--- a/tests/test-fncache.t
+++ b/tests/test-fncache.t
@@ -205,10 +205,10 @@  Aborting lock does not prevent fncache w
   > 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)