Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import wrapt
- @wrapt.decorator
- def its_fine(wrapped, instance, args, kwargs):
- """Decorator for fixing tests
- Example::
- from fixer import its_fine
- @its_fine
- def test_something():
- assert 1 == 0
- """
- try:
- return wrapped(*args, **kwargs)
- except AssertionError:
- # It's fine.
- pass
Add Comment
Please, Sign In to add comment