Home
last modified time | relevance | path

Searched refs:expected_exception (Results 1 – 7 of 7) sorted by relevance

/scripts/tests/twister/
A Dtest_platform.py194 expected_exception, argument
361 with pytest.raises(type(expected_exception)) if \
362 expected_exception else nullcontext() as exception:
365 if expected_exception:
366 if expected_exception.args:
367 assert str(expected_exception) == str(exception.value)
A Dtest_quarantine.py71 expected_exception, argument
74 if expected_exception:
75 with pytest.raises(expected_exception):
A Dtest_testsuite.py627 expected_exception, argument
662 pytest.raises(type(expected_exception)) if \
663 expected_exception else nullcontext() as exception:
671 if expected_exception:
672 assert str(expected_exception) == str(exception.value)
A Dtest_handlers.py1263 expected_exception, argument
1269 if expected_exception:
1270 raise expected_exception('')
1288 pytest.raises(expected_exception) if expected_exception else \
1298 if expected_exception:
/scripts/tests/twister_blackbox/
A Dtest_error.py70 def test_test(self, out_path, testroot, test, expected_exception): argument
81 pytest.raises(expected_exception) as exc:
84 if expected_exception == SystemExit:
A Dtest_testplan.py59 def test_subtest(self, out_path, test, expected_exception, expected_subtest_count): argument
68 pytest.raises(expected_exception) as exc:
71 if expected_exception != SystemExit:
/scripts/pylib/pytest-twister-harness/tests/device/
A Dhardware_adapter_test.py201 …with pytest.raises(expected_exception=TwisterHarnessException, match='Could not flash device p_id'…

Completed in 16 milliseconds