diff --git a/python-cryptography.spec b/python-cryptography.spec index 69987de..6781574 100644 --- a/python-cryptography.spec +++ b/python-cryptography.spec @@ -129,11 +129,12 @@ popd %check -%{__python2} setup.py test +# see https://github.com/pyca/cryptography/issues/4885 for the deselected test +PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} -m pytest -k "not test_buffer_protocol_alternate_modes[mode5]" %if 0%{?with_python3} pushd %{py3dir} -%{__python3} setup.py test +PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -k "not test_buffer_protocol_alternate_modes[mode5]" popd %endif