From 840ff6cd67cecf035dd14db02ab9be9cbb0defe9e00127359ddcaf0c613dc17b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 12 Apr 2022 09:28:40 +0000 Subject: [PATCH] Accepting request 969360 from home:mcalabkova:branches:devel:languages:python - do not use mock OBS-URL: https://build.opensuse.org/request/show/969360 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyu2f?expand=0&rev=5 --- python-pyu2f.changes | 5 +++++ python-pyu2f.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-pyu2f.changes b/python-pyu2f.changes index aee69db..e59de58 100644 --- a/python-pyu2f.changes +++ b/python-pyu2f.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 12 08:56:31 UTC 2022 - Markéta Machová + +- do not use mock + ------------------------------------------------------------------- Fri Aug 20 08:28:27 UTC 2021 - John Paul Adrian Glaubitz diff --git a/python-pyu2f.spec b/python-pyu2f.spec index cef6127..a392640 100644 --- a/python-pyu2f.spec +++ b/python-pyu2f.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyu2f # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,7 +28,6 @@ BuildRequires: %{python_module setuptools} BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module six} -BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module pyfakefs >= 2.4} BuildRequires: %{python_module pytest} # /SECTION @@ -42,6 +41,7 @@ U2F host library for interacting with a U2F device over USB. %prep %setup -q -n pyu2f-%{version} +sed -i 's/import mock/from unittest import mock/' pyu2f/tests/*_test.py pyu2f/tests/hid/*_test.py %build %python_build