Skip to content

Commit

Permalink
Refs #9342 Better test skipping implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Jackson committed Aug 6, 2014
1 parent 1f8722c commit 870980a
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -18,9 +18,9 @@ def skip_if(skipping_criteria):
'''
def decorate(cls):
if skipping_criteria():
for attr in cls.__dict__:
if callable(getattr(cls, attr)):
setattr(cls, attr, lambda cls: None)
for attr in cls.__dict__.keys():
if callable(getattr(cls, attr)) and 'test' in attr:
delattr(cls, attr)
return cls
return decorate

Expand Down

0 comments on commit 870980a

Please sign in to comment.