We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afe74b1 commit adaece3Copy full SHA for adaece3
pytests/test_async_std_uvloop.rs
@@ -13,12 +13,13 @@ fn main() -> pyo3::PyResult<()> {
13
pyo3_asyncio::async_std::run(py, async move {
14
// verify that we are on a uvloop.Loop
15
Python::with_gil(|py| -> PyResult<()> {
16
- assert!(uvloop
17
- .as_ref(py)
18
- .getattr("Loop")?
19
- .downcast::<PyType>()
20
- .unwrap()
21
- .is_instance(pyo3_asyncio::async_std::get_current_loop(py)?)?);
+ assert!(pyo3_asyncio::async_std::get_current_loop(py)?.is_instance(
+ uvloop
+ .as_ref(py)
+ .getattr("Loop")?
+ .downcast::<PyType>()
+ .unwrap()
22
+ )?);
23
Ok(())
24
})?;
25
0 commit comments