From abc8e442104072cb0b23dfb6ad19f40312c8515b209dcd8c773a8a49970ec382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 5 Nov 2019 10:53:59 +0000 Subject: [PATCH 1/2] - Update to 1.11.2: * The pytest introspection follows message is no longer shown if there is no pytest introspection (#154) * mocker now raises a ValueError when used as a context-manager - Update to 1.11.1: * Fix mocker.spy on Python 2 when used on non-function objects which implement __call__ (#157). OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=18 --- pytest-mock-1.11.0.tar.gz | 3 --- pytest-mock-1.11.2.tar.gz | 3 +++ python-pytest-mock.changes | 15 +++++++++++++++ python-pytest-mock.spec | 4 ++-- 4 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 pytest-mock-1.11.0.tar.gz create mode 100644 pytest-mock-1.11.2.tar.gz diff --git a/pytest-mock-1.11.0.tar.gz b/pytest-mock-1.11.0.tar.gz deleted file mode 100644 index c2f8ecf..0000000 --- a/pytest-mock-1.11.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3fd5ffb33b7041aea60a77f77b98e05d5acd577d53a01bf2ff0ca9780c6e3d84 -size 18893 diff --git a/pytest-mock-1.11.2.tar.gz b/pytest-mock-1.11.2.tar.gz new file mode 100644 index 0000000..1223d6f --- /dev/null +++ b/pytest-mock-1.11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea502c3891599c26243a3a847ccf0b1d20556678c528f86c98e3cd6d40c5cf11 +size 22825 diff --git a/python-pytest-mock.changes b/python-pytest-mock.changes index d4143d2..2cc1bd2 100644 --- a/python-pytest-mock.changes +++ b/python-pytest-mock.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Tue Nov 5 10:50:54 UTC 2019 - Tomáš Chvátal + +- Update to 1.11.2: + * The pytest introspection follows message is no longer shown + if there is no pytest introspection (#154) + * mocker now raises a ValueError when used as a context-manager + +------------------------------------------------------------------- +Mon Oct 7 12:56:56 UTC 2019 - Tomáš Chvátal + +- Update to 1.11.1: + * Fix mocker.spy on Python 2 when used on non-function objects + which implement __call__ (#157). + ------------------------------------------------------------------- Mon Sep 30 12:22:25 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 5926acd..5a2d6de 100644 --- a/python-pytest-mock.spec +++ b/python-pytest-mock.spec @@ -20,7 +20,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-pytest-mock -Version: 1.11.0 +Version: 1.11.2 Release: 0 Summary: Thin-wrapper around the mock package for easier use with pytest License: MIT @@ -60,7 +60,7 @@ of a test %check export PYTHONDONTWRITEBYTECODE=1 -%pytest test_pytest_mock.py +%pytest %files %{python_files} %doc CHANGELOG.rst From fc04c77c35f4a49b190b4f7633d057380e25d7130789b356f77b927449ec1687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 18 Nov 2019 09:58:52 +0000 Subject: [PATCH 2/2] Accepting request 749233 from home:frispete:python Done: - Disable current failing tests see: https://github.com/pytest-dev/pytest-mock/issues/167 boils done to an issue of pytest OBS-URL: https://build.opensuse.org/request/show/749233 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-mock?expand=0&rev=19 --- python-pytest-mock.changes | 7 +++++++ python-pytest-mock.spec | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-pytest-mock.changes b/python-pytest-mock.changes index 2cc1bd2..1cf482a 100644 --- a/python-pytest-mock.changes +++ b/python-pytest-mock.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 16 22:35:16 UTC 2019 - Hans-Peter Jansen + +- Disable current failing tests + see: https://github.com/pytest-dev/pytest-mock/issues/167 + boils done to an issue of pytest + ------------------------------------------------------------------- Tue Nov 5 10:50:54 UTC 2019 - Tomáš Chvátal diff --git a/python-pytest-mock.spec b/python-pytest-mock.spec index 5a2d6de..156de7b 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 LINUX GmbH, Nuernberg, Germany. +# 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 @@ -60,7 +60,8 @@ of a test %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} %doc CHANGELOG.rst