diff --git a/tests/test_gc.rs b/tests/test_gc.rs index 0e8ab8b1f0b..4b293449b36 100644 --- a/tests/test_gc.rs +++ b/tests/test_gc.rs @@ -5,6 +5,7 @@ use pyo3::class::PyVisit; use pyo3::ffi; use pyo3::prelude::*; use pyo3::py_run; +#[cfg(not(target_arch = "wasm32"))] use std::cell::Cell; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Once;