Skip to content
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
9 changes: 9 additions & 0 deletions .github/valgrind/cppinterop-clang22-valgrind.supp
Original file line number Diff line number Diff line change
Expand Up @@ -217,3 +217,12 @@
fun:*TargetLowering*LowerCallTo*
...
}
{
Clang 22 concepts: uninitialised value in Sema::BuildExprRequirement (seen on aarch64)
Memcheck:Cond
fun:_ZN5clang4Sema20BuildExprRequirementEPNS_4ExprEbNS_14SourceLocationENS_8concepts15ExprRequirement21ReturnTypeRequirementE
fun:_ZN5clang13TreeTransformIN12_GLOBAL__N_120TemplateInstantiatorEE21TransformRequiresExprEPNS_12RequiresExprE
fun:_ZN12_GLOBAL__N_120TemplateInstantiator21TransformRequiresExprEPN5clang12RequiresExprE
fun:_ZN5clang4Sema19SubstConstraintExprEPNS_4ExprERKNS_30MultiLevelTemplateArgumentListE
fun:_ZN12_GLOBAL__N_129ConstraintSatisfactionChecker8EvaluateERKN5clang20NormalizedConstraintERKNS1_30MultiLevelTemplateArgumentListE
}
11 changes: 5 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
uv

pytest
pytest-xdist

# Numba tests (Not tested for Python >= 3.14)
numba==0.61.2; python_version < '3.14'
# Numba tests (numba dropped macOS x86_64 wheels after 0.61)
numba==0.67.0; sys_platform != "darwin" or platform_machine != "x86_64"
numba==0.61.2; sys_platform == "darwin" and platform_machine == "x86_64" and python_version < "3.14"
numpy

# Leak check tests (To be re-enabled)
# psutil
# Leak check tests
psutil
10 changes: 10 additions & 0 deletions test/test_leakcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import sys

from pytest import mark, skip
from support import IS_MAC

nopsutil = False
try:
Expand Down Expand Up @@ -74,6 +75,9 @@ def check_func(self, scope, func, *args, **kwds):

assert fail < M

@mark.xfail(
condition=IS_MAC, reason="std::string overload fails to resolve on OS X"
)
def test01_free_functions(self):
"""Leak test of free functions"""

Expand All @@ -99,6 +103,9 @@ def test01_free_functions(self):
self.check_func(ns, "free_f_ret1")
self.check_func(ns, "free_f_ret1")

@mark.xfail(
condition=IS_MAC, reason="std::string overload fails to resolve on OS X"
)
def test02_test_static_methods(self):
"""Leak test of static methods"""

Expand All @@ -125,6 +132,9 @@ class MyClass02 {
self.check_func(m, "static_method_ol", 42.0, tmpl_args="float")
self.check_func(m, "static_method_ret")

@mark.xfail(
condition=IS_MAC, reason="std::string overload fails to resolve on OS X"
)
def test03_test_methods(self):
"""Leak test of methods"""

Expand Down
6 changes: 3 additions & 3 deletions test/test_numba.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class TestREFLEX:
def setup_class(cls):
pass
import cppjit.reflex # noqa: F401

def test01_instance_box_unbox(self):
"""Access to box/unbox methods"""
Expand Down Expand Up @@ -95,7 +95,7 @@ class MyData_d1 {
@mark.skipif(has_numba == False, reason="numba not found")
class TestNUMBA:
def setup_class(cls):
pass
import cppjit.numba_ext # noqa: F401

def compare(self, go_slow, go_fast, N, *args):
t0 = time.time()
Expand Down Expand Up @@ -759,7 +759,7 @@ def mul_njit(m, x):
@mark.skipif(has_numba == False, reason="numba not found")
class TestNUMBA_DOC:
def setup_class(cls):
pass
import cppjit.numba_ext # noqa: F401

def test01_templated_freefunction(self):
"""Numba support documentation example: free templated function"""
Expand Down
Loading