summaryrefslogtreecommitdiffstats
path: root/testsuite/common.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 10:10:37 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-22 10:10:37 -0400
commita69775edbb64876b740455e90b72cc5da48fee43 (patch)
treeed1e2cc400b539aa3dbd5ef39d09d84180524d6e /testsuite/common.py
parent734fc0c0841adec1b7f50096e44accbc0ac0f6b2 (diff)
downloadbcfg2-a69775edbb64876b740455e90b72cc5da48fee43.tar.gz
bcfg2-a69775edbb64876b740455e90b72cc5da48fee43.tar.bz2
bcfg2-a69775edbb64876b740455e90b72cc5da48fee43.zip
add an argument, don't remove it in patchIf()
Diffstat (limited to 'testsuite/common.py')
-rw-r--r--testsuite/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/common.py b/testsuite/common.py
index 2709d597a..e40184a35 100644
--- a/testsuite/common.py
+++ b/testsuite/common.py
@@ -248,7 +248,7 @@ def patchIf(condition, entity, **kwargs):
def decorator(func):
@wraps(func)
def inner(*args, **kwargs):
- args = args[:-1]
+ args = list(args) + [None]
return func(*args, **kwargs)
return inner
return decorator