diff --git a/src/err/err_state.rs b/src/err/err_state.rs index 4ddd560b1ee..534992d1af2 100644 --- a/src/err/err_state.rs +++ b/src/err/err_state.rs @@ -364,6 +364,7 @@ mod tests { }; #[test] + #[cfg(not(target_arch = "wasm32"))] // We are building wasm Python with pthreads disabled #[should_panic(expected = "Re-entrant normalization of PyErrState detected")] fn test_reentrant_normalization() { static ERR: GILOnceCell = GILOnceCell::new();