Skip to content

[cppyy] disable tests failing with mac-beta ARM64 #19069

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import py, sys, pytest, os

Check failure on line 1 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:1:8: F401 `py` imported but unused

Check failure on line 1 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E401)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:1:1: E401 Multiple imports on one line
from pytest import mark, raises
from support import setup_make, ispypy
from support import setup_make, ispypy, IS_MAC_ARM

Check failure on line 3 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:3:41: F401 `support.IS_MAC_ARM` imported but unused

Check failure on line 3 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:3:21: F401 `support.setup_make` imported but unused

Check failure on line 3 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:1:1: I001 Import block is un-sorted or un-formatted


currpath = os.getcwd()
Expand All @@ -16,9 +16,9 @@
def test01_smart_ptr(self):
"""Usage and access of std::shared/unique_ptr<>"""

from cppyy.gbl import TestSmartPtr
from cppyy.gbl import create_shared_ptr_instance, create_unique_ptr_instance
import gc

Check failure on line 21 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:19:9: I001 Import block is un-sorted or un-formatted

for cf in [create_shared_ptr_instance, create_unique_ptr_instance]:
assert TestSmartPtr.s_counter == 0
Expand All @@ -44,8 +44,8 @@
def test02_smart_ptr_construction(self):
"""Shared/Unique pointer ctor is templated, requiring special care"""

from cppyy.gbl import std, TestSmartPtr
import gc

Check failure on line 48 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:47:9: I001 Import block is un-sorted or un-formatted

class C(TestSmartPtr):
pass
Expand All @@ -71,8 +71,8 @@
def test03_smart_ptr_memory_handling(self):
"""Test shared/unique pointer memory ownership"""

from cppyy.gbl import std, TestSmartPtr
import gc

Check failure on line 75 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:74:9: I001 Import block is un-sorted or un-formatted

class C(TestSmartPtr):
pass
Expand Down Expand Up @@ -101,9 +101,9 @@
def test04_shared_ptr_passing(self):
"""Ability to pass shared_ptr<Derived> through shared_ptr<Base>"""

from cppyy.gbl import std, TestSmartPtr, DerivedTestSmartPtr
from cppyy.gbl import pass_shared_ptr, move_shared_ptr, create_TestSmartPtr_by_value
import gc

Check failure on line 106 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:104:9: I001 Import block is un-sorted or un-formatted

for ff, mv in [(pass_shared_ptr, lambda x: x), (move_shared_ptr, std.move)]:
assert TestSmartPtr.s_counter == 0
Expand Down Expand Up @@ -140,10 +140,10 @@
def test05_unique_ptr_passing(self):
"""Ability to pass unique_ptr<Derived> through unique_ptr<Base>"""

from cppyy.gbl import std, TestSmartPtr, DerivedTestSmartPtr
from cppyy.gbl import move_unique_ptr, move_unique_ptr_derived
from cppyy.gbl import create_TestSmartPtr_by_value
import gc

Check failure on line 146 in bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (I001)

bindings/pyroot/cppyy/cppyy/test/test_cpp11features.py:143:9: I001 Import block is un-sorted or un-formatted

assert TestSmartPtr.s_counter == 0

Expand Down
1 change: 1 addition & 0 deletions bindings/pyroot/cppyy/cppyy/test/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2356,6 +2356,7 @@ def test48_bool_typemap(self):
assert str(bt(1)) == 'True'
assert str(bt(0)) == 'False'

@mark.xfail(condition=IS_MAC_ARM, reason="Fails on mac-beta ARM64")
def test49_addressof_method(self):
"""Use of addressof for (const) methods"""

Expand Down
Loading