diff options
author | Julian Berman <Julian@GrayVines.com> | 2018-09-03 10:17:56 +0100 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2018-09-03 10:17:56 +0100 |
commit | 0d16e04735912244e857971ff5bdd264cb2a1b39 (patch) | |
tree | 9c2a69d322ddd17b36c30cd85a2075a31fcf4bb4 | |
parent | 85643621eb53713512a88c77edae5d92d39acb10 (diff) | |
download | jsonschema-0d16e04735912244e857971ff5bdd264cb2a1b39.tar.gz |
Swapzies.
-rw-r--r-- | jsonschema/tests/_suite.py | 3 |
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) |