14
0
forked from pool/python-ws4py

Accepting request 973749 from home:pgajdos:python

- do not require python-mock for build

OBS-URL: https://build.opensuse.org/request/show/973749
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ws4py?expand=0&rev=11
This commit is contained in:
2022-04-28 21:53:11 +00:00
committed by Git OBS Bridge
parent 53c9627e68
commit 3d40db0764
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Apr 28 15:49:52 UTC 2022 - pgajdos@suse.com
- do not require python-mock for build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 17 22:28:45 UTC 2020 - Julio González Gil <jgonzalez@suse.com> Mon Feb 17 22:28:45 UTC 2020 - Julio González Gil <jgonzalez@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-ws4py # spec file
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2022 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -40,7 +40,6 @@ BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module gevent} BuildRequires: %{python_module gevent}
BuildRequires: %{python_module greenlet} BuildRequires: %{python_module greenlet}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module tornado} BuildRequires: %{python_module tornado}
BuildRequires: %{python_module ws4py = %{version}} BuildRequires: %{python_module ws4py = %{version}}
@@ -67,6 +66,8 @@ rm test/test_cherrypy.py
%if %{with test} %if %{with test}
%check %check
# This repository has been archived by the owner. It is now read-only.
sed -i 's:from mock:from unittest.mock:' test/test_*.py
%pytest %pytest
%endif %endif