MCPcopy Create free account
hub / github.com/PyO3/pyo3 / tuple_coroutine

Function tuple_coroutine

tests/test_coroutine.rs:139–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137
138#[test]
139fn tuple_coroutine() {
140 Python::attach(|py| {
141 let func = wrap_pyfunction!(return_tuple, py).unwrap();
142 let test = r#"import asyncio; assert asyncio.run(func()) == (42, 43)"#;
143 py_run!(py, func, &handle_windows(test));
144 })
145}
146
147#[test]
148fn cancelled_coroutine() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected