Hello community, here is the log from the commit of package python-blinker for openSUSE:Factory checked in at 2020-07-15 12:05:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-blinker (Old) and /work/SRC/openSUSE:Factory/.python-blinker.new.3060 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-blinker" Wed Jul 15 12:05:08 2020 rev:15 rq:819672 version:1.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-blinker/python-blinker.changes 2018-12-13 19:47:39.524761985 +0100 +++ /work/SRC/openSUSE:Factory/.python-blinker.new.3060/python-blinker.changes 2020-07-15 12:06:15.592232897 +0200 @@ -1,0 +2,8 @@ +Wed Jul 8 13:23:59 UTC 2020 - [email protected] + +- use pytest instead of deprecated nose +- added patches + https://github.com/jek/blinker/pull/60 + + python-blinker-remove-nose.patch + +------------------------------------------------------------------- New: ---- python-blinker-remove-nose.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-blinker.spec ++++++ --- /var/tmp/diff_new_pack.2OzIBL/_old 2020-07-15 12:06:17.244234626 +0200 +++ /var/tmp/diff_new_pack.2OzIBL/_new 2020-07-15 12:06:17.248234630 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-blinker # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,9 @@ Group: Development/Languages/Python URL: https://pythonhosted.org/blinker/ Source: https://files.pythonhosted.org/packages/source/b/blinker/blinker-%{version}.tar.gz -BuildRequires: %{python_module nose} +# https://github.com/jek/blinker/pull/60 +Patch0: python-blinker-remove-nose.patch +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -55,6 +57,7 @@ %prep %setup -q -n blinker-%{version} +%patch0 -p1 # remove unneded doc file that trigger rpmlint rm docs/html/objects.inv @@ -66,7 +69,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec %{_bindir}/nosetests-%{$python_bin_suffix} +%pytest %files %{python_files} %license LICENSE ++++++ python-blinker-remove-nose.patch ++++++ Index: blinker-1.4/tests/test_signals.py =================================================================== --- blinker-1.4.orig/tests/test_signals.py 2015-07-23 13:34:42.000000000 +0200 +++ blinker-1.4/tests/test_signals.py 2020-07-08 15:07:17.109435209 +0200 @@ -4,7 +4,7 @@ import time import blinker -from nose.tools import assert_raises +import pytest jython = sys.platform.startswith('java') @@ -227,7 +227,7 @@ def test_meta_connect_failure(): pass sig = blinker.Signal() - assert_raises(TypeError, sig.connect, receiver) + pytest.raises(TypeError, sig.connect, receiver) assert not sig.receivers assert not sig._by_receiver assert sig._by_sender == {blinker.base.ANY_ID: set()} @@ -487,9 +487,4 @@ def values_are_empty_sets_(dictionary): for val in dictionary.values(): assert val == set() -if sys.version_info < (2, 5): - def test_context_manager_warning(): - sig = blinker.Signal() - receiver = lambda sender: None - assert_raises(RuntimeError, sig.connected_to, receiver)
