osmo-gsm-tester/sysmocom/suites/nitb_debug/fail_raise.py

9 lines
219 B
Python

#!/usr/bin/env python3
from osmo_gsm_tester.testenv import *
class ExpectedExn(Exception):
pass
# This can be used to verify that a test failure is reported properly.
raise ExpectedExn('This failure is expected')