Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions test/test_datatypes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import subprocess
import sys

import py
Expand All @@ -7,6 +8,20 @@
currpath = py.path.local(__file__).dirpath()
test_dct = str(currpath.join("cpp/datatypesDict"))

IS_MACOS_27_PLUS = False

try:
vers = (
subprocess.check_output(["xcrun", "--sdk", "macosx", "--show-sdk-version"])
.decode()
.strip()
)
if int(vers.split(".")[0]) >= 27:
IS_MACOS_27_PLUS = True
Comment thread
aaronj0 marked this conversation as resolved.
except FileNotFoundError:
# If xcrun is not on the system, we assume it's not macOS 27+
pass


def setup_module(mod):
setup_make("datatypes")
Expand Down Expand Up @@ -1016,6 +1031,10 @@ def test15_object_returns(self):
assert c.get_pod_ptrref().m_int == 666
assert c.get_pod_ptrref().m_double == 3.14

@mark.xfail(
condition=IS_MACOS_27_PLUS,
reason="Mutating proxy pointee via T** corrupts memory regulator, resulting in crashes on newer macOS",
)
def test16_object_arguments(self):
"""Test setting and returning of a POD through arguments"""

Expand Down
Loading