MCPcopy Create free account
hub / github.com/pytorch/executorch / throws_err

Method throws_err

exir/tests/test_error.py:15–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13class TestError(unittest.TestCase):
14 def test_export_error_message(self) -> None:
15 def throws_err() -> None:
16 raise ExportError(ExportErrorType.NOT_SUPPORTED, "error message")
17
18 with self.assertRaisesRegex(ExportError, "[ExportErrorType.NOT_SUPPORTED]"):
19 throws_err()

Callers

nothing calls this directly

Calls 1

ExportErrorClass · 0.90

Tested by

no test coverage detected