Write test skips one per line; respect pytest.ini

epel9
Benjamin A. Beasley 2 months ago
parent f352b2164c
commit d3ccadd3f1

@ -133,9 +133,20 @@ cp -p '%{SOURCE1}' .
%check %check
# to avoid partially initialized zmq module from cwd # to avoid partially initialized zmq module from cwd
cd %{_topdir} mkdir -p _empty
# test_cython does not seem to work with --pyargs / not from cwd cd _empty
%pytest --pyargs zmq -k "not test_cython" ln -s %{buildroot}%{python3_sitearch}/zmq/ ../pytest.ini ./
# test_draft seems to get incorrectly run:
# https://github.com/zeromq/pyzmq/issues/1853
k="${k-}${k+ and }not test_draft"
# Whatever it takes to build the Cython extension tests/cython_ext.pyx that is
# *in the tests*, we arent doing it. This goes away in later releases, so we
# dont put any effort into figuring out how to make it work.
k="${k-}${k+ and }not test_cython"
%pytest -k "${k-}" -v zmq/tests
%files -n python%{python3_pkgversion}-zmq -f %{pyproject_files} %files -n python%{python3_pkgversion}-zmq -f %{pyproject_files}

Loading…
Cancel
Save