summaryrefslogtreecommitdiff
path: root/coverage/misc.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/misc.py')
-rw-r--r--coverage/misc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/misc.py b/coverage/misc.py
index 40a9f72c..e3723c18 100644
--- a/coverage/misc.py
+++ b/coverage/misc.py
@@ -45,6 +45,7 @@ if env.TESTING:
from contracts import new_contract as raw_new_contract
def new_contract(*args, **kwargs):
+ """A proxy for contracts.new_contract that doesn't mind happening twice."""
try:
return raw_new_contract(*args, **kwargs)
except ValueError:
@@ -63,7 +64,7 @@ else: # pragma: not covered
"""Dummy no-op implementation of `contract`."""
return lambda func: func
- def new_contract(*args, **kwargs):
+ def new_contract(*args_unused, **kwargs_unused):
"""Dummy no-op implementation of `new_contract`."""
pass