Accepting request 812814 from devel:languages:python:pytest

- Update to 3.1.1:
  * Fixed performance regression caused by the ValueError raised
    when mocker is used as context manager (#191).

OBS-URL: https://build.opensuse.org/request/show/812814
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=19
This commit is contained in:
Dominique Leuenberger 2020-06-11 12:45:28 +00:00 committed by Git OBS Bridge
commit ec85a14826
4 changed files with 12 additions and 7 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce610831cedeff5331f4e2fc453a5dd65384303f680ab34bee2c6533855b431c
size 25003

3
pytest-mock-3.1.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:636e792f7dd9e2c80657e174c04bf7aa92672350090736d82e97e92ce8f68737
size 25038

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Jun 9 07:58:45 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 3.1.1:
* Fixed performance regression caused by the ValueError raised
when mocker is used as context manager (#191).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 27 10:19:49 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Mon Apr 27 10:19:49 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1 %define skip_python2 1
Name: python-pytest-mock Name: python-pytest-mock
Version: 3.1.0 Version: 3.1.1
Release: 0 Release: 0
Summary: Thin-wrapper around the mock package for easier use with pytest Summary: Thin-wrapper around the mock package for easier use with pytest
License: MIT License: MIT
@ -51,9 +51,7 @@ of a test
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
export PYTHONDONTWRITEBYTECODE=1 %pytest
# disable current failing tests
%pytest -k 'not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection and not test_detailed_introspection'
%files %{python_files} %files %{python_files}
%doc CHANGELOG.rst %doc CHANGELOG.rst