summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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