Skip to content

Commit c4d1f4e

Browse files
fix(tests): add missing pyo3 feature gates to integration tests
- Add #![cfg(feature = "pyo3")] to pyo3-related integration tests to ensure they are skipped when compiling without the pyo3 feature, preventing compilation errors in CI environments running with --no-default-features.
1 parent c972f97 commit c4d1f4e

7 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
RUST_BACKTRACE: 1
3838
run: cargo test --workspace --verbose --no-default-features
3939

40-
- name: Run Tests (PyO3,JIT,Vortex)
40+
- name: Run Tests (PyO3,Vortex)
4141
env:
4242
RUST_BACKTRACE: 1
43-
run: cargo test --workspace --verbose --no-default-features --features=pyo3,jit
43+
run: cargo test --workspace --verbose --no-default-features --features=pyo3,vortex

tests/pyo3_network.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use pyo3::types::{PyDict, PyList};
35
use std::time::Duration;

tests/pyo3_phase7.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use std::time::Duration;
35

tests/pyo3_registry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use pyo3::types::{PyDict, PyList};
35
use std::time::Duration;

tests/pyo3_runtime.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use pyo3::types::{PyDict, PyList};
35
use std::time::Duration;

tests/pyo3_send_many_bench.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use pyo3::types::PyDict;
35

tests/pyo3_telemetry.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(feature = "pyo3")]
2+
13
use pyo3::prelude::*;
24
use std::collections::HashMap;
35
use std::time::Duration;

0 commit comments

Comments
 (0)