mirror of
https://github.com/markqvist/rnsh.git
synced 2025-01-07 05:07:57 -05:00
9 lines
270 B
Python
9 lines
270 B
Python
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() |