Skip compile_html test on musl (#1756)

The torch index has no musllinux wheel, so we need to skip the test on
alpine.
This commit is contained in:
konsti 2024-02-20 17:36:03 +01:00 committed by GitHub
parent 6ea49ef7bf
commit db61d848a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,6 +5,7 @@
# will have compiled files and executables # will have compiled files and executables
debug/ debug/
target/ target/
target-alpine/
# Bootstrapped Python versions # Bootstrapped Python versions
bin/ bin/

View File

@ -2434,6 +2434,7 @@ fn cache_errors_are_non_fatal() -> Result<()> {
/// Resolve a distribution from an HTML-only registry. /// Resolve a distribution from an HTML-only registry.
#[test] #[test]
#[cfg(not(target_env = "musl"))] // No musllinux wheels in the torch index
fn compile_html() -> Result<()> { fn compile_html() -> Result<()> {
let context = TestContext::new("3.12"); let context = TestContext::new("3.12");
let requirements_in = context.temp_dir.child("requirements.in"); let requirements_in = context.temp_dir.child("requirements.in");