Hello community,

here is the log from the commit of package python3-tomate for openSUSE:Factory 
checked in at 2020-03-18 12:44:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-tomate (Old)
 and      /work/SRC/openSUSE:Factory/.python3-tomate.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-tomate"

Wed Mar 18 12:44:29 2020 rev:2 rq:786028 version:0.12.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python3-tomate/python3-tomate.changes    
2019-07-26 12:42:51.617843087 +0200
+++ /work/SRC/openSUSE:Factory/.python3-tomate.new.3160/python3-tomate.changes  
2020-03-18 12:49:45.665116250 +0100
@@ -1,0 +2,5 @@
+Tue Mar 17 20:09:54 UTC 2020 - Sebastian Wagner <sebix+novell....@sebix.at>
+
+- add fix-tests.patch to fix compatibility with curreny pytest mock version.
+
+-------------------------------------------------------------------

New:
----
  fix-tests.patch

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

Other differences:
------------------
++++++ python3-tomate.spec ++++++
--- /var/tmp/diff_new_pack.aWJVBb/_old  2020-03-18 12:49:50.065118877 +0100
+++ /var/tmp/diff_new_pack.aWJVBb/_new  2020-03-18 12:49:50.065118877 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package python-tomate
+# spec file for package python3-tomate
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2014 Elio Esteves Duarte <elio.esteves.dua...@gmail.com>
 #
 # All modifications and additions to the file contributed by third parties
@@ -25,6 +25,8 @@
 Group:          Productivity/Other
 URL:            https://github.com/eliostvs/tomate
 Source:         tomate-%{version}.tar.gz
+# PATCH-FIX-UPSTEAM fix-tests.patch -- 
https://github.com/eliostvs/tomate/issues/19 
https://github.com/eliostvs/tomate/pull/20
+Patch0:         fix-tests.patch
 BuildRequires:  python3-setuptools
 Requires:       /usr/bin/aplay
 Requires:       dbus-1-python3
@@ -56,7 +58,8 @@
 Provides the library for tomate, a Pomodoro timer.
 
 %prep
-%autosetup -n tomate-%{version}
+%setup -q -n tomate-%{version}
+%patch0 -p1
 touch tests/__init__.py
 
 %build

++++++ fix-tests.patch ++++++
diff -Naur orig/tests/test_app.py tomate-0.12.0/tests/test_app.py
--- orig/tests/test_app.py      2019-02-28 20:44:36.000000000 +0100
+++ tomate-0.12.0/tests/test_app.py     2020-03-17 21:08:06.667872366 +0100
@@ -1,3 +1,4 @@
+import contextlib
 import dbus
 import pytest
 
@@ -24,10 +25,11 @@
 
     assert isinstance(app, Application)
 
-    with mocker.patch(
-        "tomate.app.dbus.SessionBus.return_value.request_name",
-        return_value=dbus.bus.REQUEST_NAME_REPLY_EXISTS,
-    ):
+    with contextlib.ExitStack() as stack:
+        stack.enter_context(mocker.patch(
+            "tomate.app.dbus.SessionBus.return_value.request_name",
+            return_value=dbus.bus.REQUEST_NAME_REPLY_EXISTS,
+        ))
         dbus_app = Application.from_graph(graph)
 
         assert isinstance(dbus_app, dbus.Interface)

Reply via email to