pydu/tests/test_exception.py

8 lines
148 B
Python
Raw Normal View History

2017-12-17 09:14:32 +00:00
from pydu.exception import ignore
def test_ignore():
with ignore(ValueError, AttributeError):
int('abc')
int.no_exists_func()