Hello community,
here is the log from the commit of package python3-tomate for
openSUSE:Leap:15.2 checked in at 2020-03-20 05:15:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python3-tomate (Old)
and /work/SRC/openSUSE:Leap:15.2/.python3-tomate.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-tomate"
Fri Mar 20 05:15:01 2020 rev:2 rq:786330 version:0.12.0
Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/python3-tomate/python3-tomate.changes
2020-02-22 17:50:41.213558603 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python3-tomate.new.3160/python3-tomate.changes
2020-03-20 05:15:09.926558486 +0100
@@ -1,0 +2,5 @@
+Tue Mar 17 20:09:54 UTC 2020 - Sebastian Wagner <[email protected]>
+
+- 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.MqwGho/_old 2020-03-20 05:15:10.342558764 +0100
+++ /var/tmp/diff_new_pack.MqwGho/_new 2020-03-20 05:15:10.350558770 +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 <[email protected]>
#
# 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)