Skip to content
Closed
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
16 changes: 16 additions & 0 deletions bindings/pyroot/cppjit/test/test_datatypes.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,27 @@
import sys

import py
from pytest import mark, raises, skip
from support import IS_CLANG_REPL, IS_MAC, IS_WINDOWS, pylong, pyunicode, setup_make
import subprocess

Check failure on line 6 in bindings/pyroot/cppjit/test/test_datatypes.py

View workflow job for this annotation

GitHub Actions / ruff

ruff (I001)

bindings/pyroot/cppjit/test/test_datatypes.py:1:1: I001 Import block is un-sorted or un-formatted help: Organize imports

currpath = py.path.local(__file__).dirpath()
test_dct = "datatypes_cxx"

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
except ModuleNotFoundError:
pass
except FileNotFoundError:
pass

if IS_MACOS_27_PLUS:
raise RuntimeError("Hi")


def setup_module(mod):
setup_make("datatypes")
Expand Down Expand Up @@ -1009,6 +1024,7 @@
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** confuses 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