diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-22 10:10:37 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-22 10:10:37 -0400 |
commit | a69775edbb64876b740455e90b72cc5da48fee43 (patch) | |
tree | ed1e2cc400b539aa3dbd5ef39d09d84180524d6e /testsuite/common.py | |
parent | 734fc0c0841adec1b7f50096e44accbc0ac0f6b2 (diff) | |
download | bcfg2-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.py | 2 |
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 |