diff --git a/src/distributions/uniform.rs b/src/distributions/uniform.rs index c86c4970bf..ccf7b6e8ac 100644 --- a/src/distributions/uniform.rs +++ b/src/distributions/uniform.rs @@ -1536,11 +1536,7 @@ mod tests { } #[test] - #[cfg(all( - feature = "std", - not(target_arch = "wasm32"), - not(target_arch = "asmjs") - ))] + #[cfg(all(feature = "std", panic = "unwind"))] fn test_float_assertions() { use super::SampleUniform; use std::panic::catch_unwind;