Skip to content

Commit

Permalink
fix wasm tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoldbaum committed Nov 2, 2024
1 parent 2d1e397 commit 9e10588
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ mod tests {
}

#[test]
#[cfg(not(target_arch = "wasm32"))] // We are building wasm Python with pthreads disabled
fn test_once_ext() {
// adapted from the example in the docs for Once::try_once_force
let init = Once::new();
Expand Down Expand Up @@ -765,6 +766,7 @@ mod tests {
}

#[cfg(rustc_has_once_lock)]
#[cfg(not(target_arch = "wasm32"))] // We are building wasm Python with pthreads disabled
#[test]
fn test_once_lock_ext() {
let cell = std::sync::OnceLock::new();
Expand Down

0 comments on commit 9e10588

Please sign in to comment.