Accepting request 753969 from devel:languages:python:pytest

- Update to 1.12.1:
  * Fix error if mocker.patch is used in code where the source file
    is not available, for example stale .pyc files
  * Now all patch functions also raise a ValueError when used as a
    context-manager

OBS-URL: https://build.opensuse.org/request/show/753969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-mock?expand=0&rev=16
This commit is contained in:
Dominique Leuenberger 2019-12-11 10:59:52 +00:00 committed by Git OBS Bridge
commit e64f7a3296
4 changed files with 14 additions and 6 deletions

View File

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

View File

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

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Wed Dec 4 12:04:01 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.12.1:
* Fix error if mocker.patch is used in code where the source file
is not available, for example stale .pyc files
* Now all patch functions also raise a ValueError when used as a
context-manager
-------------------------------------------------------------------
Sat Nov 16 22:35:16 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pytest-mock
#
# Copyright (c) 2019 SUSE LLC.
# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,11 +20,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-pytest-mock
Version: 1.11.2
Version: 1.12.1
Release: 0
Summary: Thin-wrapper around the mock package for easier use with pytest
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pytest-dev/pytest-mock
Source: https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
BuildRequires: %{python_module pytest}