pyo3/tests/ui/not_send.rs
2022-03-23 08:07:28 +01:00

12 lines
205 B
Rust

use pyo3::prelude::*;
fn test_not_send_allow_threads(py: Python<'_>) {
py.allow_threads(|| { drop(py); });
}
fn main() {
Python::with_gil(|py| {
test_not_send_allow_threads(py);
})
}