diff --git a/python-ws4py.changes b/python-ws4py.changes index bb6f73d..cc4181e 100644 --- a/python-ws4py.changes +++ b/python-ws4py.changes @@ -8,8 +8,6 @@ Thu Apr 11 12:09:24 UTC 2019 - Marketa Calabkova * exclude certain headers when requested * Disable build for Python 3.4 - launch tests using multibuild -- added patch ws4py-no-cherrypy-test.patch to enable tests also on - Python2.7 (since CherryPy does not exist for Python2) ------------------------------------------------------------------- Tue Dec 4 12:56:13 UTC 2018 - Matej Cepl diff --git a/python-ws4py.spec b/python-ws4py.spec index 3c29b9c..c33d2c4 100644 --- a/python-ws4py.spec +++ b/python-ws4py.spec @@ -33,7 +33,6 @@ License: BSD-2-Clause Group: Development/Languages/Python URL: https://github.com/Lawouach/WebSocket-for-Python Source: https://files.pythonhosted.org/packages/source/w/ws4py/ws4py-%{version}.tar.gz -Patch0: ws4py-no-cherrypy-test.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -54,7 +53,8 @@ defined in RFC 6455. %prep %setup -q -n ws4py-%{version} -%patch0 -p1 +# CherryPy is python3 only to ease the testing just skip it here +rm test/test_cherrypy.py %build %python_build @@ -67,8 +67,7 @@ defined in RFC 6455. %if %{with test} %check -py.test -v -python2.7 -m pytest -v +%pytest %endif %if !%{with test}