commit:     9f97824bfafba3a3162be8f2ab54c6f71ddec77d
Author:     Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 11 13:34:39 2021 +0000
Commit:     Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Thu Mar 11 13:44:32 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f97824b

dev-python/ruamel-yaml-0.16.13-r1: enable tests

Tried on amd64 and all currently supported CPython implementations
(have run into weird dependency problems trying to emerge pypy3
on my test container), no failures.

Bug: https://bugs.gentoo.org/774366
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>

 dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild 
b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild
index 92e6b31ff74..9d1cf66a423 100644
--- a/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.16.13-r1.ebuild
@@ -20,22 +20,22 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
 IUSE="test"
 
-#RESTRICT="!test? ( test )"
-# Running the test suite is broken for now, WIP
-RESTRICT="test"
-
 RDEPEND="dev-python/namespace-ruamel[${PYTHON_USEDEP}]
        dev-python/ruamel-yaml-clib[${PYTHON_USEDEP}]"
-# This confuses dependency resolution on arches not supporting this package
-# yet regardless of RESTRICT=test, just leave it out for now.
-#BDEPEND="test? (
-#      dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
-#)"
+BDEPEND="test? (
+       dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
+)"
 
 S="${WORKDIR}"/${MY_P}
 
 distutils_enable_tests pytest
 
+# Old PyYAML tests from lib/ require special set-up and are invoked indirectly
+# via test_z_olddata, tell pytest itself to leave the subdir alone.
+python_test() {
+       epytest --ignore _test/lib/
+}
+
 python_install() {
        distutils-r1_python_install --single-version-externally-managed
        find "${ED}" -name '*.pth' -delete || die

Reply via email to