Skip to content

Commit 5059ae1

Browse files
author
Andrew J Westlake
committed
Changed CancelledError import
1 parent 6a2bec9 commit 5059ae1

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
@@ -113,7 +113,7 @@ async fn test_cancel() -> PyResult<()> {
113113
{
114114
Python::with_gil(|py| -> PyResult<()> {
115115
assert!(py
116-
.import("asyncio.exceptions")?
116+
.import("asyncio")?
117117
.getattr("CancelledError")?
118118
.downcast::<PyType>()
119119
.unwrap()

pytests/tokio_asyncio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ async fn test_cancel() -> PyResult<()> {
119119
{
120120
Python::with_gil(|py| -> PyResult<()> {
121121
assert!(py
122-
.import("asyncio.exceptions")?
122+
.import("asyncio")?
123123
.getattr("CancelledError")?
124124
.downcast::<PyType>()
125125
.unwrap()

0 commit comments

Comments
 (0)