odlgroup/odl

PyTest-8 has changed keyword arguments

Opened this issue · 0 comments

This occurs only for skipped Astra tests, with pytest==8.3.4 (and not with pytest==7.4.4):

________________________________________________________________________________________________________ test_anisotropic_voxels[ geometry='par2d' ] _________________________________________________________________________________________________________

geometry = Parallel2dGeometry(
    uniform_partition(0.0, 3.142, 100),
    uniform_partition(-30.0, 30.0, 100)
)

    def test_anisotropic_voxels(geometry):
        """Test projection and backprojection with anisotropic voxels."""
        ndim = geometry.ndim
        shape = [10] * (ndim - 1) + [5]
        space = odl.uniform_discr([-1] * ndim, [1] * ndim, shape=shape,
                                  dtype='float32')
    
        # If no implementation is available, skip
        if ndim == 2 and not odl.tomo.ASTRA_AVAILABLE:
>           pytest.skip(msg='ASTRA not available, skipping 2d test')
E           TypeError: skip() got an unexpected keyword argument 'msg'

pypitest.pyenv/lib/python3.12/site-packages/odl/test/tomo/operators/ray_trafo_test.py:362: TypeError