Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run pyo3_no_extension_module test case on manylinux platforms only #1652

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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