diff options
author | 2020-08-21 21:28:16 +0200 | |
---|---|---|
committer | 2020-08-21 21:28:16 +0200 | |
commit | c229a8fd39bd84ee859f425ee6b8bfce865d7e0a (patch) | |
tree | 864ed03f2ee90e507f3f00186107b656e1f4ed66 /dev-python/voluptuous | |
parent | dev-python/pytest-mock: mark 3.2.0 stable under ALLARCHES, bug #737786 (diff) | |
download | gentoo-c229a8fd39bd84ee859f425ee6b8bfce865d7e0a.tar.gz gentoo-c229a8fd39bd84ee859f425ee6b8bfce865d7e0a.tar.bz2 gentoo-c229a8fd39bd84ee859f425ee6b8bfce865d7e0a.zip |
dev-python/voluptuous: Fix tests
Closes: https://bugs.gentoo.org/738452
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'dev-python/voluptuous')
-rw-r--r-- | dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch | 11 | ||||
-rw-r--r-- | dev-python/voluptuous/voluptuous-0.11.5.ebuild | 8 |
2 files changed, 15 insertions, 4 deletions
diff --git a/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch b/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch new file mode 100644 index 000000000000..bdc8228ff40e --- /dev/null +++ b/dev-python/voluptuous/files/voluptuous-0.11.5-fix-doctest.patch @@ -0,0 +1,11 @@ +--- a/voluptuous/util.py ++++ b/voluptuous/util.py +@@ -87,7 +87,7 @@ + >>> s = Schema(validators.Any(int, SetTo(42))) + >>> s(2) + 2 +- >>> s("foo") ++ >>> s(42) + 42 + """ + diff --git a/dev-python/voluptuous/voluptuous-0.11.5.ebuild b/dev-python/voluptuous/voluptuous-0.11.5.ebuild index b5a5d32daab0..bef18fbef06f 100644 --- a/dev-python/voluptuous/voluptuous-0.11.5.ebuild +++ b/dev-python/voluptuous/voluptuous-0.11.5.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + PYTHON_COMPAT=( python3_{6..9} ) inherit distutils-r1 @@ -14,7 +15,6 @@ LICENSE="BSD" SLOT="0" KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 s390 sparc x86 ~amd64-linux ~x86-linux" -python_test() { - unset PYTHONPATH - nosetests -v || die "Tests failed" -} +PATCHES=( "${FILESDIR}"/${PN}-0.11.5-fix-doctest.patch ) + +distutils_enable_tests nose |