diff --git a/python-python-memcached.changes b/python-python-memcached.changes index 88bd14d..54944b5 100644 --- a/python-python-memcached.changes +++ b/python-python-memcached.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 11 13:02:07 UTC 2022 - Markéta Machová + +- do not use mock + ------------------------------------------------------------------- Wed Jun 3 11:51:18 UTC 2020 - Marketa Calabkova diff --git a/python-python-memcached.spec b/python-python-memcached.spec index fa03859..7eb5e2d 100644 --- a/python-python-memcached.spec +++ b/python-python-memcached.spec @@ -1,7 +1,7 @@ # # spec file for package python-python-memcached # -# Copyright (c) 2020 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 @@ -26,7 +26,6 @@ License: Python-2.0 Group: Development/Languages/Python URL: https://github.com/linsomniac/python-memcached Source: https://github.com/linsomniac/python-memcached/archive/%{version}.tar.gz -BuildRequires: %{python_module mock} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} @@ -56,6 +55,7 @@ for more information. sed -i \ -e 's:#!/usr/bin/env python::' \ memcache.py +sed -i 's/import mock/import unittest.mock as mock/' tests/test_memcache.py %build %python_build