From 3bf39040c1eca999ed898a46aac7ff777baf95b754764f657e44875b21eb84fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 4 Dec 2019 12:07:12 +0000 Subject: [PATCH] - 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 --- pytest-mock-1.11.2.tar.gz | 3 --- pytest-mock-1.12.1.tar.gz | 3 +++ python-pytest-mock.changes | 9 +++++++++ python-pytest-mock.spec | 5 ++--- 4 files changed, 14 insertions(+), 6 deletions(-) delete mode 100644 pytest-mock-1.11.2.tar.gz create mode 100644 pytest-mock-1.12.1.tar.gz diff --git a/pytest-mock-1.11.2.tar.gz b/pytest-mock-1.11.2.tar.gz deleted file mode 100644 index 1223d6f..0000000 --- a/pytest-mock-1.11.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea502c3891599c26243a3a847ccf0b1d20556678c528f86c98e3cd6d40c5cf11 -size 22825 diff --git a/pytest-mock-1.12.1.tar.gz b/pytest-mock-1.12.1.tar.gz new file mode 100644 index 0000000..23f824c --- /dev/null +++ b/pytest-mock-1.12.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96a0cebc66e09930be2a15b03333d90b59584d3fb011924f81c14b50ee0afbba +size 23236 diff --git a/python-pytest-mock.changes b/python-pytest-mock.changes index 1cf482a..a884fdb 100644 --- a/python-pytest-mock.changes +++ b/python-pytest-mock.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Wed Dec 4 12:04:01 UTC 2019 - Tomáš Chvátal + +- 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 diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 156de7b..1a2a426 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -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}