Skip to content

Commit

Permalink
ADd incompatibility check to test for adios2 and numpy (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgensd committed Nov 22, 2024
1 parent aa10a2d commit 3f7467e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

from mpi4py import MPI

import adios2
import numpy as np
import pytest
from packaging.version import parse as _v

import adios4dolfinx


@pytest.mark.skipif(
_v(np.__version__) >= _v("2.0.0") and _v(adios2.__version__) < _v("2.10.2"),
reason="Cannot use numpy>=2.0.0 and adios2<2.10.2",
)
@pytest.mark.parametrize("comm", [MPI.COMM_SELF, MPI.COMM_WORLD])
def test_read_write_attributes(comm, tmp_path):
attributes1 = {
Expand Down

0 comments on commit 3f7467e

Please sign in to comment.