pydu/tests/test_exception.py

8 lines
148 B
Python

from pydu.exception import ignore
def test_ignore():
with ignore(ValueError, AttributeError):
int('abc')
int.no_exists_func()