2021-12-23 21:17:33 +00:00
|
|
|
use pyo3::prelude::*;
|
|
|
|
|
2022-03-23 07:07:28 +00:00
|
|
|
fn test_not_send_allow_threads(py: Python<'_>) {
|
2021-12-23 21:17:33 +00:00
|
|
|
py.allow_threads(|| { drop(py); });
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
Python::with_gil(|py| {
|
|
|
|
test_not_send_allow_threads(py);
|
|
|
|
})
|
|
|
|
}
|