Skip to content

Commit

Permalink
Update valgrind suppression / skip
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Nov 26, 2024
1 parent 2ebc149 commit 6dce525
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/test_jax.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
from beartype import beartype

from amici.pysb_import import pysb2amici
from amici.testing import TemporaryDirectoryWinSafe
from amici.testing import TemporaryDirectoryWinSafe, skip_on_valgrind
from numpy.testing import assert_allclose

pysb = pytest.importorskip("pysb")

jax.config.update("jax_enable_x64", True)


@skip_on_valgrind
def test_conversion():
pysb.SelfExporter.cleanup() # reset pysb
pysb.SelfExporter.do_export = True
Expand All @@ -42,6 +43,7 @@ def test_conversion():
_test_model(model_module, ts, p, k)


@skip_on_valgrind
@pytest.mark.filterwarnings(
"ignore:Model does not contain any initial conditions"
)
Expand Down
9 changes: 9 additions & 0 deletions python/tests/valgrind-python.supp
Original file line number Diff line number Diff line change
Expand Up @@ -985,3 +985,12 @@
fun:_PyTuple_Resize
...
}

{
Python
Memcheck:Cond
fun:PyObject_RichCompareBool
fun:tuplerichcompare
fun:do_richcompare
...
}

0 comments on commit 6dce525

Please sign in to comment.