summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2018-09-03 10:17:56 +0100
committerJulian Berman <Julian@GrayVines.com>2018-09-03 10:17:56 +0100
commit0d16e04735912244e857971ff5bdd264cb2a1b39 (patch)
tree9c2a69d322ddd17b36c30cd85a2075a31fcf4bb4
parent85643621eb53713512a88c77edae5d92d39acb10 (diff)
downloadjsonschema-0d16e04735912244e857971ff5bdd264cb2a1b39.tar.gz
Swapzies.
-rw-r--r--jsonschema/tests/_suite.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/jsonschema/tests/_suite.py b/jsonschema/tests/_suite.py
index dad337e..1e25ad1 100644
--- a/jsonschema/tests/_suite.py
+++ b/jsonschema/tests/_suite.py
@@ -113,7 +113,6 @@ class Collection(object):
def to_unittest_testcase(self, *suites, **kwargs):
name = kwargs.pop("name", "Test" + self.name.title())
- kwargs.setdefault("skip", lambda test: None)
methods = {
test.method_name: test.to_unittest_method(**kwargs)
for suite in suites
@@ -178,7 +177,7 @@ class _Test(object):
name = name.encode("utf-8")
return name
- def to_unittest_method(self, skip, **kwargs):
+ def to_unittest_method(self, skip=lambda test: None, **kwargs):
if self.valid:
def fn(this):
self.validate(**kwargs)