From f6651df84a99a046f38a98328ba25ea77372f9c9417b1ef5bcc95b006cd2da0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Wed, 15 Jan 2020 12:35:43 +0000
Subject: [PATCH] - Restrict pytest to < 5.0 as it broke with 5.3 and upstream 
  still didn't bother to merge support for even pytest 4+...

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-html5lib?expand=0&rev=41
---
 python-html5lib.changes | 6 ++++++
 python-html5lib.spec    | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/python-html5lib.changes b/python-html5lib.changes
index 5bc058f..703a832 100644
--- a/python-html5lib.changes
+++ b/python-html5lib.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Jan 15 12:31:39 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
+
+- Restrict pytest to < 5.0 as it broke with 5.3 and upstream
+  still didn't bother to merge support for even pytest 4+...
+
 -------------------------------------------------------------------
 Tue Dec  3 14:25:29 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
 
diff --git a/python-html5lib.spec b/python-html5lib.spec
index bbb06ab..6adb6b3 100644
--- a/python-html5lib.spec
+++ b/python-html5lib.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-html5lib
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -31,8 +31,8 @@ BuildRequires:  %{python_module Genshi}
 BuildRequires:  %{python_module datrie}
 BuildRequires:  %{python_module lxml}
 BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module pytest < 5.0}
 BuildRequires:  %{python_module pytest-expect}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools >= 18.5}
 BuildRequires:  %{python_module six >= 1.9}
 BuildRequires:  %{python_module webencodings}