dev-python/sphinx: Make python_test() simpler
authorMichał Górny <mgorny@gentoo.org>
Thu, 12 Jul 2018 18:36:45 +0000 (20:36 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 12 Jul 2018 18:49:35 +0000 (20:49 +0200)
dev-python/sphinx/sphinx-1.7.5-r1.ebuild

index b39431a75c07c8f40bdeb00cb1df9d1be4eb740a..86a61f664a7418b17b16ffdd3b25bf2af09a4580 100644 (file)
@@ -93,7 +93,5 @@ python_compile_all() {
 python_test() {
        mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
        local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
-       cp -r -l tests "${BUILD_DIR}"/ || die "Failed to copy tests"
-       cp Makefile "${BUILD_DIR}"/ || die "Failed to copy Makefile"
-       emake test
+       py.test -vv || die "Tests fail with ${EPYTHON}"
 }