Hello community, here is the log from the commit of package python-h2 for openSUSE:Factory checked in at 2019-07-30 13:06:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-h2 (Old) and /work/SRC/openSUSE:Factory/.python-h2.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-h2" Tue Jul 30 13:06:17 2019 rev:5 rq:718812 version:3.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-h2/python-h2.changes 2019-05-16 21:59:47.546786456 +0200 +++ /work/SRC/openSUSE:Factory/.python-h2.new.4126/python-h2.changes 2019-07-30 13:06:18.970373386 +0200 @@ -1,0 +2,16 @@ +Fri Jul 26 10:02:54 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add patch to fix building with pytest5 pytest5.patch + +------------------------------------------------------------------- +Fri Jul 26 09:58:17 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Skip flaky test in OBS: + * test_changing_max_frame_size + +------------------------------------------------------------------- +Fri Jul 19 08:59:56 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Use pytest4 for now, link upstream ticket + +------------------------------------------------------------------- New: ---- pytest5.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-h2.spec ++++++ --- /var/tmp/diff_new_pack.n129E5/_old 2019-07-30 13:06:19.502373248 +0200 +++ /var/tmp/diff_new_pack.n129E5/_new 2019-07-30 13:06:19.506373248 +0200 @@ -25,8 +25,7 @@ Group: Development/Languages/Python URL: https://github.com/python-hyper/hyper-h2 Source0: https://files.pythonhosted.org/packages/source/h/h2/h2-%{version}.tar.gz -# test requirements -BuildRequires: %{python_module coverage} +Patch0: pytest5.patch BuildRequires: %{python_module hpack >= 2.3} BuildRequires: %{python_module hyperframe >= 5.2.0} BuildRequires: %{python_module hypothesis} @@ -34,10 +33,14 @@ BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: fdupes +BuildRequires: python-enum34 >= 1.1.6 BuildRequires: python-rpm-macros Requires: python-hpack >= 2.3 Requires: python-hyperframe >= 5.2.0 BuildArch: noarch +%ifpython2 +Requires: python-enum34 >= 1.1.6 +%endif %python_subpackages %description @@ -48,6 +51,7 @@ %prep %setup -q -n h2-%{version} +%patch0 -p1 %build %python_build @@ -57,7 +61,8 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# test_changing_max_frame_size - flaky in OBS +%pytest -k 'not test_changing_max_frame_size' %files %{python_files} %license LICENSE ++++++ pytest5.patch ++++++ >From 04eb49ca8c7302a6dcb1f3b93994e928a260a12b Mon Sep 17 00:00:00 2001 From: pgjones <[email protected]> Date: Sat, 20 Jul 2019 13:23:03 +0100 Subject: [PATCH] Update dependencies Note that pytest>=5 cannot be used whilst Python 2 is still supported. This will pass with pytest==5.0.1 though. --- test/test_invalid_headers.py | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/test/test_invalid_headers.py b/test/test_invalid_headers.py index bff071b3..a3799507 100644 --- a/test/test_invalid_headers.py +++ b/test/test_invalid_headers.py @@ -204,7 +204,7 @@ def test_pseudo_headers_rejected_in_trailer(self, frame_factory): # Raise exception if pseudo header in trailer with pytest.raises(h2.exceptions.ProtocolError) as e: c.receive_data(trailer) - assert "pseudo-header in trailer" in str(e) + assert "pseudo-header in trailer" in str(e.value) # Test appropriate response frame is generated expected_frame = frame_factory.build_goaway_frame(
