lava-nc / lava

A Software Framework for Neuromorphic Computing
https://lava-nc.org
Other
529 stars 136 forks source link

Handle exceptions in runtime service so unittest can catch them #813

Closed weidel-p closed 7 months ago

weidel-p commented 7 months ago

Issue Number: https://github.com/intel-collab/frameworks.ai.lava.lava-loihi/issues/393

Objective of pull request: Unittests were not able to catch exceptions thrown in the runtime service. In this PR, exceptions in the runtime service are passed to the main process such that unittests can catch them. This PR enables tests involving unittest.assertRaises

Pull request checklist

Your PR fulfills the following requirements:

Pull request type

Please check your PR type:

What is the current behavior?

-

What is the new behavior?

-

Does this introduce a breaking change?

Supplemental information