Fix `cfg_attr` ignore for macOS (#3535)

This commit is contained in:
Charlie Marsh 2024-05-12 21:53:04 -04:00 committed by GitHub
parent aa6b853d78
commit b6f6f58831
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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");