forked from pool/python-expiringdict
Accepting request 946885 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/946885 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-expiringdict?expand=0&rev=3
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 16 16:02:53 UTC 2022 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Don't check coverage
|
||||
- Extend remove-nose.patch to also remove mock
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 6 05:27:10 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-expiringdict
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -17,7 +17,8 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%{?!python_module:%define python_module() python3-%{**}}
|
||||
%define skip_python2 1
|
||||
Name: python-expiringdict
|
||||
Version: 1.2.1
|
||||
Release: 0
|
||||
@@ -34,9 +35,6 @@ Requires: python-dill
|
||||
Requires: python-typing
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module coverage}
|
||||
BuildRequires: %{python_module coveralls}
|
||||
BuildRequires: %{python_module mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
@@ -53,8 +53,9 @@ Index: expiringdict-1.2.1/tests/expiringdict_test.py
|
||||
@@ -1,38 +1,40 @@
|
||||
from time import sleep
|
||||
|
||||
from mock import Mock, patch
|
||||
-from mock import Mock, patch
|
||||
-from nose.tools import assert_raises, eq_, ok_
|
||||
+from unittest.mock import Mock, patch
|
||||
|
||||
from expiringdict import ExpiringDict
|
||||
|
||||
|
||||
Reference in New Issue
Block a user