- 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/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=21
This commit is contained in:
Tomáš Chvátal
2019-12-04 12:07:12 +00:00
committed by Git OBS Bridge
parent fc04c77c35
commit 3bf39040c1
4 changed files with 14 additions and 6 deletions

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}