Reverts 75e9a8c7fabb1f32753960b9114dcee875256351
2c3d87b168bf522f538e78325fdae71c320e6e20 introduced a new test that passes on macOS but fails on other operating systems. This commit makes it only run on macOS.