diff --git a/python-hpack.changes b/python-hpack.changes index 27ba685..684df2f 100644 --- a/python-hpack.changes +++ b/python-hpack.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jul 19 09:49:33 UTC 2019 - Tomáš Chvátal + +- Restrict pytest5 for now + ------------------------------------------------------------------- Wed Jan 2 12:47:37 UTC 2019 - Tomáš Chvátal diff --git a/python-hpack.spec b/python-hpack.spec index 0f36b18..8610045 100644 --- a/python-hpack.spec +++ b/python-hpack.spec @@ -25,9 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/python-hyper/hpack Source: https://files.pythonhosted.org/packages/source/h/hpack/hpack-%{version}.tar.gz -# test requirements BuildRequires: %{python_module hypothesis} -BuildRequires: %{python_module pytest} +# https://github.com/python-hyper/hpack/issues/168 +BuildRequires: %{python_module pytest < 5.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -49,10 +49,10 @@ export LC_ALL="en_US.UTF-8" %install export LC_ALL="en_US.UTF-8" %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -k"-test_can_decode_a_story -test_can_decode_a_story_no_huffman -test_can_encode_a_story_with_huffman -test_can_encode_a_story_no_huffman -test_decode_either_succeeds_or_raises_error" +%pytest -k "not (test_can_decode_a_story or test_can_decode_a_story_no_huffman or test_can_encode_a_story_with_huffman or test_can_encode_a_story_no_huffman or test_decode_either_succeeds_or_raises_error)" %files %{python_files} %license LICENSE