+++ /dev/null
-diff -ur mygpoclient-1.7.orig/mygpoclient/locator_test.py mygpoclient-1.7/mygpoclient/locator_test.py
---- mygpoclient-1.7.orig/mygpoclient/locator_test.py 2013-02-08 19:39:32.000000000 +0800
-+++ mygpoclient-1.7/mygpoclient/locator_test.py 2013-03-09 23:33:37.137651841 +0800
-@@ -16,7 +16,7 @@
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
-
- 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,
+++ /dev/null
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-PYTHON_COMPAT=( python2_7 pypy )
-
-inherit distutils-r1 eutils
-
-DESCRIPTION="A gpodder.net client library"
-HOMEPAGE="https://github.com/gpodder/mygpoclient
- https://mygpoclient.readthedocs.io/en/latest/"
-SRC_URI="https://github.com/gpodder/mygpoclient/archive/${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE="test"
-
-RDEPEND="dev-python/simplejson"
-DEPEND="${RDEPEND}
- test? (
- dev-python/coverage[${PYTHON_USEDEP}]
- dev-python/minimock
- )"
-
-PATCHES=( "${FILESDIR}"/tests.patch )
-
-src_prepare() {
- distutils-r1_src_prepare
- # Disable tests requring network connection.
- rm -f mygpoclient/http_test.py
-}
-
-python_test() {
- if [[ "${EPYTHON:0:4}" == "pypy" ]]; then
- nosetests --cover-erase --with-coverage --cover-package=mygpoclient "${BUILD_DIR}"/lib/${PN}/
- else
- nosetests --cover-erase --with-coverage --with-doctest --cover-package=mygpoclient "${BUILD_DIR}"/lib/${PN}/
- fi
-}
-
-src_install() {
- distutils-r1_src_install
- rm -f $(find "${D}" -name "*_test.py")
-}