commit:     c229a8fd39bd84ee859f425ee6b8bfce865d7e0a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 21 19:28:16 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Aug 21 19:28:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c229a8fd

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 <AT> gentoo.org>

 .../voluptuous/files/voluptuous-0.11.5-fix-doctest.patch      | 11 +++++++++++
 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 00000000000..bdc8228ff40
--- /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 b5a5d32daab..bef18fbef06 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

Reply via email to