mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user