Skip to content

Commit 211b9d1

Browse files
author
Andrew J Westlake
committed
Merge branch 'master' of https://github.com/awestlake87/pyo3-asyncio into init-fixes
2 parents 1c4f520 + 5059ae1 commit 211b9d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pytests/test_async_std_asyncio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ async fn test_cancel() -> PyResult<()> {
187187
{
188188
Python::with_gil(|py| -> PyResult<()> {
189189
assert!(py
190-
.import("asyncio.exceptions")?
190+
.import("asyncio")?
191191
.getattr("CancelledError")?
192192
.downcast::<PyType>()
193193
.unwrap()

pytests/tokio_asyncio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ async fn test_cancel() -> PyResult<()> {
194194
{
195195
Python::with_gil(|py| -> PyResult<()> {
196196
assert!(py
197-
.import("asyncio.exceptions")?
197+
.import("asyncio")?
198198
.getattr("CancelledError")?
199199
.downcast::<PyType>()
200200
.unwrap()

0 commit comments

Comments
 (0)