Skip to content

Commit b4ddd55

Browse files
author
Andrew J Westlake
committed
Fixed compile-checked lib test attributes
1 parent ef24776 commit b4ddd55

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/testing.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,11 @@ pub async fn test_harness(tests: Vec<impl Test + 'static>, args: Args) -> PyResu
376376
}
377377

378378
#[cfg(test)]
379-
#[cfg(feature = "testing attributes")]
379+
#[cfg(all(
380+
feature = "testing",
381+
feature = "attributes",
382+
any(feature = "async-std-runtime", feature = "tokio-runtime")
383+
))]
380384
mod tests {
381385
use pyo3::prelude::*;
382386

0 commit comments

Comments
 (0)