dev-python/pytest-xdist: install package for testing
authorMike Gilbert <floppym@gentoo.org>
Sat, 18 Feb 2017 17:38:55 +0000 (12:38 -0500)
committerMike Gilbert <floppym@gentoo.org>
Sat, 18 Feb 2017 17:40:49 +0000 (12:40 -0500)
pytest doesn't load the xdist plugin unless xdist has already been
installed.

Bug: https://bugs.gentoo.org/597698
Bug: https://bugs.gentoo.org/597700
Bug: https://bugs.gentoo.org/609516
Package-Manager: Portage-2.3.3_p56, Repoman-2.3.1_p49

dev-python/pytest-xdist/pytest-xdist-1.15.0.ebuild

index 27b6a3d48e52bc12a6f5c6a4ecc1431880c3b411..27409543e6097defdc24e615f8de8cfbcfb5877c 100644 (file)
@@ -37,6 +37,6 @@ PATCHES=(
 )
 
 python_test() {
-       find -name __pycache__ -exec rm -r '{}' + || die
+       distutils_install_for_testing
        py.test -vv || die "Tests failed under ${EPYTHON}"
 }