diff --git a/crates/uv/tests/pip_sync.rs b/crates/uv/tests/pip_sync.rs index 522c1e77b..c54822df1 100644 --- a/crates/uv/tests/pip_sync.rs +++ b/crates/uv/tests/pip_sync.rs @@ -3024,7 +3024,10 @@ fn compile() -> Result<()> { /// Test that the `PYC_INVALIDATION_MODE` option is recognized and that the error handling works. #[test] -#[cfg_attr(macos, ignore = "The bytecode trace is spuriously different on macOS")] +#[cfg_attr( + target_os = "macos", + ignore = "The bytecode trace is spuriously different on macOS" +)] fn compile_invalid_pyc_invalidation_mode() -> Result<()> { let context = TestContext::new("3.12");