From b1820314865852f9407a53848a763e4a15e9da25 Mon Sep 17 00:00:00 2001 From: Tobias Girstmair Date: Dec 03 2020 18:05:30 +0000 Subject: fix tests for python3.10a2 See RHBZ#1903954. --- diff --git a/fix-tests-python310.patch b/fix-tests-python310.patch new file mode 100644 index 0000000..ecb3e3d --- /dev/null +++ b/fix-tests-python310.patch @@ -0,0 +1,25 @@ +From e4df879fee991732cfde6c6c53fdd5a500b447cd Mon Sep 17 00:00:00 2001 +From: girst +Date: Thu, 3 Dec 2020 18:50:04 +0100 +Subject: [PATCH] fix test failure on python 3.10 + +reported via https://bugzilla.redhat.com/show_bug.cgi?id=1903954 +--- + tests/internal/test_jsonrpc.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/tests/internal/test_jsonrpc.py b/tests/internal/test_jsonrpc.py +index 08e87b395..8b650136f 100644 +--- a/tests/internal/test_jsonrpc.py ++++ b/tests/internal/test_jsonrpc.py +@@ -492,8 +492,8 @@ def test_invalid_params_causes_invalid_params_error(self): + data = error["data"] + assert data["type"] == "TypeError" + assert ( +- data["message"] +- == "get_uri_schemes() takes 1 positional argument but 2 were given" ++ "get_uri_schemes() takes 1 positional argument but 2 were given" ++ in data["message"] + ) + assert "traceback" in data + assert "Traceback (most recent call last):" in data["traceback"] diff --git a/mopidy.spec b/mopidy.spec index 3f82c12..33d410e 100644 --- a/mopidy.spec +++ b/mopidy.spec @@ -3,13 +3,16 @@ Name: mopidy Version: 3.0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: An extensible music server written in Python License: ASL 2.0 URL: https://mopidy.com/ Source0: %{pypi_source} Source1: mopidy.conf +# https://github.com/mopidy/mopidy/pull/1942 +# https://bugzilla.redhat.com/show_bug.cgi?id=1903954 +Patch0: fix-tests-python310.patch BuildArch: noarch BuildRequires: python3-devel @@ -114,6 +117,9 @@ exit 0 %changelog +* Thu Dec 3 2020 Tobias Girstmair - 3.0.2-4 +- Fix tests for Python 3.10 + * Tue Jul 28 2020 Fedora Release Engineering - 3.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild