Skip to content

Commit 746e44a

Browse files
author
Andrew J Westlake
committed
Fixed some CI errors
1 parent 1432e79 commit 746e44a

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ jobs:
105105
- name: Build
106106
run: cargo build --features=${{env.features}} --verbose --target ${{ matrix.platform.rust-target }}
107107

108+
- name: Install pyo3-asyncio test dependencies
109+
run: |
110+
python -m pip install -U uvloop
111+
108112
# Run tests (except on PyPy, because no embedding API).
109113
- if: matrix.python-version != 'pypy-3.6'
110114
name: Test
@@ -114,12 +118,6 @@ jobs:
114118
run: |
115119
python -m pip install -U pip setuptools
116120
pip install setuptools-rust pytest pytest-benchmark tox tox-venv
117-
# - name: Test example extension modules
118-
# shell: bash
119-
# run: |
120-
# for example_dir in examples/*; do
121-
# tox --discover $(which python) -c $example_dir -e py
122-
# done
123121
env:
124122
RUST_BACKTRACE: 1
125123
RUSTFLAGS: "-D warnings"

pytests/test_async_std_asyncio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const TEST_CODE: &str = r#"
220220
async def main():
221221
return await test_mod.sleep()
222222
223-
asyncio.run(main())
223+
asyncio.new_event_loop().run_until_complete(main())
224224
"#;
225225

226226
#[pyo3_asyncio::async_std::test]

pytests/tokio_asyncio/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const TEST_CODE: &str = r#"
216216
async def main():
217217
return await test_mod.sleep()
218218
219-
asyncio.run(main())
219+
asyncio.new_event_loop().run_until_complete(main())
220220
"#;
221221

222222
#[pyo3_asyncio::tokio::test]

src/async_std.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ where
230230
/// ```
231231
#[deprecated(
232232
since = "0.14.0",
233-
note = "Use the pyo3_asyncio::async_std::future_into_py instead\n\t\t(see the [migration guide](https://github.com/awestlake87/pyo3-asyncio/#migrating-from-013-to-014) for more details)"
233+
note = "Use the pyo3_asyncio::async_std::future_into_py instead\n (see the [migration guide](https://github.com/awestlake87/pyo3-asyncio/#migrating-from-013-to-014) for more details)"
234234
)]
235235
#[allow(deprecated)]
236236
pub fn into_coroutine<F>(py: Python, fut: F) -> PyResult<PyObject>

src/generic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ where
660660
/// ```
661661
#[deprecated(
662662
since = "0.14.0",
663-
note = "Use the pyo3_asyncio::generic::future_into_py instead\n\t\t(see the [migration guide](https://github.com/awestlake87/pyo3-asyncio/#migrating-from-013-to-014) for more details)"
663+
note = "Use the pyo3_asyncio::generic::future_into_py instead\n (see the [migration guide](https://github.com/awestlake87/pyo3-asyncio/#migrating-from-013-to-014) for more details)"
664664
)]
665665
#[allow(deprecated)]
666666
pub fn into_coroutine<R, F>(py: Python, fut: F) -> PyResult<PyObject>

0 commit comments

Comments
 (0)