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>
This commit is contained in:
David Seifert
2020-08-21 21:28:16 +02:00
parent 20292bb483
commit c229a8fd39
2 changed files with 15 additions and 4 deletions
@@ -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
"""
@@ -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