Skip to content

Commit dc20dab

Browse files
author
Andrew J Westlake
committed
Fixed issue that showed up during feature-powerset tests
1 parent e95636b commit dc20dab

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/testing.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
//! async fn main() -> pyo3::PyResult<()> {
3939
//! pyo3_asyncio::testing::main().await
4040
//! }
41+
//! #
42+
//! # #[cfg(not(all(feature = "tokio-runtime", feature = "attributes")))]
43+
//! fn main() {}
4144
//! ```
4245
//!
4346
//! `pytests/test_example.rs` for the `async-std` runtime:
@@ -47,6 +50,9 @@
4750
//! async fn main() -> pyo3::PyResult<()> {
4851
//! pyo3_asyncio::testing::main().await
4952
//! }
53+
//! #
54+
//! # #[cfg(not(all(feature = "async-std-runtime", feature = "attributes")))]
55+
//! fn main() {}
5056
//! ```
5157
//!
5258
//! ### Cargo Configuration

0 commit comments

Comments
 (0)