Commit e95847fa authored by Julien Muchembled's avatar Julien Muchembled

fixup! qa: add a basic assertion in Patch to detect when patched code changes

parent c0adf81c
......@@ -449,11 +449,11 @@ class Patch(object):
applied = False
def __new__(cls, patched, **patch):
def __new__(cls, patched, *args, **patch):
if patch:
return object.__new__(cls)
def patch(func):
self = cls(patched, **{func.__name__: func})
self = cls(patched, *args, **{func.__name__: func})
self.apply()
return self
return patch
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment