diff --git a/bob/ip/binseg/data/drive/__init__.py b/bob/ip/binseg/data/drive/__init__.py index 58d101adde6d1f2c8bdf0301d1f7e6abacecead0..2e6e8aef4914f48c7086663ef34a02261d47645b 100644 --- a/bob/ip/binseg/data/drive/__init__.py +++ b/bob/ip/binseg/data/drive/__init__.py @@ -9,7 +9,6 @@ import bob.extension from ..jsondataset import JSONDataset from ..loader import load_pil_rgb, load_pil_1 - _protocols = [ pkg_resources.resource_filename(__name__, "default.json"), pkg_resources.resource_filename(__name__, "second-annotation.json"), diff --git a/bob/ip/binseg/data/utils.py b/bob/ip/binseg/data/utils.py index 50db3da3b05b50064ce981d7b633ba45b7a32537..ecb90bca58a7c6fe2e8dcf0eb56e10d927e6a6d9 100644 --- a/bob/ip/binseg/data/utils.py +++ b/bob/ip/binseg/data/utils.py @@ -19,10 +19,9 @@ def rc_variable_set(name): def wrapped_function(test): @functools.wraps(test) def wrapper(*args, **kwargs): - if bob.extension.rc[name]: - return test(*args, **kwargs) - else: + if name not in bob.extension.rc: raise nose.plugins.skip.SkipTest("Bob's RC variable '%s' is not set" % name) + return test(*args, **kwargs) return wrapper