From 1c915cfe17a3100569ca8734309ba1ceb77ac2a6 Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 11 Nov 2018 19:34:23 +0100 Subject: [PATCH] dev-python/mygpoclient: Commit updated patch Bug: https://bugs.gentoo.org/615548 Signed-off-by: Pacho Ramos Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- .../files/mygpoclient-1.8-tests.patch | 34 +++++++++++++++++++ dev-python/mygpoclient/mygpoclient-1.8.ebuild | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 dev-python/mygpoclient/files/mygpoclient-1.8-tests.patch diff --git a/dev-python/mygpoclient/files/mygpoclient-1.8-tests.patch b/dev-python/mygpoclient/files/mygpoclient-1.8-tests.patch new file mode 100644 index 000000000000..94a37be8232f --- /dev/null +++ b/dev-python/mygpoclient/files/mygpoclient-1.8-tests.patch @@ -0,0 +1,34 @@ +diff -Naur a/mygpoclient/locator_test.py b/mygpoclient/locator_test.py +--- a/mygpoclient/locator_test.py 2018-03-27 02:18:57.711105496 -0300 ++++ b/mygpoclient/locator_test.py 2018-03-27 02:22:02.201109125 -0300 +@@ -16,7 +16,7 @@ + # along with this program. If not, see . + + from mygpoclient import locator +-import unittest ++import unittest, sys + + class Test_Exceptions(unittest.TestCase): + def setUp(self): +@@ -54,18 +54,21 @@ + podcast='http://example.org/episodes.rss', + device_id='gpodder') + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_device_settings_uri_exception(self): + """Test if using no parameter for a device Setting raises a ValueError""" + self.assertRaises(ValueError, + self.locator.settings_uri, type='device', + scope_param1=None, scope_param2=None) + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_podcast_settings_uri_exception(self): + """Test if using no parameter for a podcast Setting raises a ValueError""" + self.assertRaises(ValueError, + self.locator.settings_uri, type='podcast', + scope_param1=None, scope_param2=None) + ++ @unittest.skipIf(hasattr(sys, 'pypy_version_info'), "pypy doesn't raise ValueError") + def test_episode_settings_uri_exception(self): + """Test if only using one parameter for a episode Setting raises a ValueError""" + self.assertRaises(ValueError, diff --git a/dev-python/mygpoclient/mygpoclient-1.8.ebuild b/dev-python/mygpoclient/mygpoclient-1.8.ebuild index bb56a43f3a05..aeb31ddbad67 100644 --- a/dev-python/mygpoclient/mygpoclient-1.8.ebuild +++ b/dev-python/mygpoclient/mygpoclient-1.8.ebuild @@ -24,7 +24,7 @@ DEPEND="${RDEPEND} ) " -PATCHES=( "${FILESDIR}"/tests.patch ) +PATCHES=( "${FILESDIR}"/${P}-tests.patch ) src_prepare() { distutils-r1_src_prepare -- 2.26.2