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
+
+- 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
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}