rnsh/tests/test_exception.py

9 lines
270 B
Python
Raw Normal View History

2023-02-11 12:09:22 -05:00
import pytest
import rnsh.exception as exception
def test_permit():
with pytest.raises(SystemExit):
with exception.permit(SystemExit):
raise Exception("Should not bubble")
with exception.permit(SystemExit):
raise SystemExit()