Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-mock for 
openSUSE:Factory checked in at 2022-01-23 16:25:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-mock (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-mock.new.1938 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-mock"

Sun Jan 23 16:25:41 2022 rev:21 rq:948117 version:3.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pytest-mock/python-pytest-mock.changes    
2021-06-19 23:01:48.223578103 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-mock.new.1938/python-pytest-mock.changes
  2022-01-23 16:25:48.536544533 +0100
@@ -1,0 +2,6 @@
+Sat Jan 22 11:58:55 UTC 2022 - Ben Greiner <c...@bnavigator.de>
+
+- Add pytest-mock-issue272-asyncio.patch
+  * gh#pytest-dev/pytest-mock#272
+
+-------------------------------------------------------------------

New:
----
  pytest-mock-issue272-asyncio.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-mock.spec ++++++
--- /var/tmp/diff_new_pack.1JArzs/_old  2022-01-23 16:25:48.944541744 +0100
+++ /var/tmp/diff_new_pack.1JArzs/_new  2022-01-23 16:25:48.948541716 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pytest-mock
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-pytest-mock
 Version:        3.6.1
@@ -25,6 +25,8 @@
 License:        MIT
 URL:            https://github.com/pytest-dev/pytest-mock
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-mock/pytest-mock-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM pytest-mock-issue272-asyncio.patch -- 
gh#pytest-dev/pytest-mock#272
+Patch0:         pytest-mock-issue272-asyncio.patch
 BuildRequires:  %{python_module pytest >= 5}
 BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module setuptools >= 36}
@@ -37,12 +39,11 @@
 
 %description
 This plugin installs a ``mocker`` fixture which is a thin-wrapper around the 
patching API
-provided by the `mock` package,
-but with the benefit of not having to worry about undoing patches at the end
-of a test
+provided by the `mock` package, but with the benefit of not having to worry 
about undoing
+patches at the end of a test
 
 %prep
-%setup -q -n pytest-mock-%{version}
+%autosetup -p1 -n pytest-mock-%{version}
 
 %build
 %python_build
@@ -57,6 +58,7 @@
 %files %{python_files}
 %doc CHANGELOG.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/pytest_mock
+%{python_sitelib}/pytest_mock-%{version}*-info
 
 %changelog

++++++ pytest-mock-issue272-asyncio.patch ++++++
Index: pytest-mock-3.6.1/tests/test_pytest_mock.py
===================================================================
--- pytest-mock-3.6.1.orig/tests/test_pytest_mock.py
+++ pytest-mock-3.6.1/tests/test_pytest_mock.py
@@ -839,7 +839,7 @@ def test_plain_stopall(testdir: Any) ->
     """
     )
     result = testdir.runpytest_subprocess()
-    result.stdout.fnmatch_lines("* 1 passed in *")
+    result.stdout.fnmatch_lines("* 1 passed*")
     assert "RuntimeError" not in result.stderr.str()
 
 
@@ -978,7 +978,7 @@ def test_used_with_class_scope(testdir:
     )
     result = testdir.runpytest_subprocess()
     assert "AssertionError" not in result.stderr.str()
-    result.stdout.fnmatch_lines("* 1 passed in *")
+    result.stdout.fnmatch_lines("* 1 passed*")
 
 
 def test_used_with_module_scope(testdir: Any) -> None:
@@ -1000,7 +1000,7 @@ def test_used_with_module_scope(testdir:
     )
     result = testdir.runpytest_subprocess()
     assert "AssertionError" not in result.stderr.str()
-    result.stdout.fnmatch_lines("* 1 passed in *")
+    result.stdout.fnmatch_lines("* 1 passed*")
 
 
 def test_used_with_package_scope(testdir: Any) -> None:
@@ -1023,7 +1023,7 @@ def test_used_with_package_scope(testdir
     )
     result = testdir.runpytest_subprocess()
     assert "AssertionError" not in result.stderr.str()
-    result.stdout.fnmatch_lines("* 1 passed in *")
+    result.stdout.fnmatch_lines("* 1 passed*")
 
 
 def test_used_with_session_scope(testdir: Any) -> None:
@@ -1046,4 +1046,4 @@ def test_used_with_session_scope(testdir
     )
     result = testdir.runpytest_subprocess()
     assert "AssertionError" not in result.stderr.str()
-    result.stdout.fnmatch_lines("* 1 passed in *")
+    result.stdout.fnmatch_lines("* 1 passed*")

Reply via email to