mirror of
https://github.com/markqvist/rnsh.git
synced 2025-06-19 19:44:16 -04:00
Add test suite
This commit is contained in:
parent
fcfc503184
commit
86906fd8f4
9 changed files with 225 additions and 18 deletions
9
tests/test_exception.py
Normal file
9
tests/test_exception.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
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()
|
Loading…
Add table
Add a link
Reference in a new issue