mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
13 lines
335 B
Rust
13 lines
335 B
Rust
use pyo3::prelude::*;
|
|
|
|
#[cfg(feature = "panic-test")]
|
|
#[pyfunction]
|
|
fn _panic_for_test() {
|
|
panic!("intentional PyO3 panic smoke test");
|
|
}
|
|
|
|
pub(crate) fn register(_module: &Bound<'_, PyModule>) -> PyResult<()> {
|
|
#[cfg(feature = "panic-test")]
|
|
_module.add_function(wrap_pyfunction!(_panic_for_test, _module)?)?;
|
|
Ok(())
|
|
}
|