Skip to content

Commit

Permalink
Run pyo3_no_extension_module test case on manylinux platforms only
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 7, 2023
1 parent 5ad58f4 commit d774632
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion tests/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,23 @@ fn abi3_without_version() {
}

#[test]
#[cfg_attr(not(all(target_os = "linux", target_env = "gnu")), ignore)]
// Only run this test on platforms that has manylinux support
#[cfg_attr(
not(all(
target_os = "linux",
target_env = "gnu",
any(
target_arch = "i686",
target_arch = "x86_64",
target_arch = "aarch64",
target_arch = "powerpc64",
target_arch = "powerpc64le",
target_arch = "s390x",
target_arch = "armv7"
)
)),
ignore
)]
fn pyo3_no_extension_module() {
let python = test_python_path().map(PathBuf::from).unwrap_or_else(|| {
let target = Target::from_target_triple(None).unwrap();
Expand Down

0 comments on commit d774632

Please sign in to comment.