dev-python/sqlalchemy: Clean python_test up
authorMichał Górny <mgorny@gentoo.org>
Fri, 13 Jul 2018 07:04:19 +0000 (09:04 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 13 Jul 2018 07:53:09 +0000 (09:53 +0200)
Remove meaningless code from python_test().

dev-python/sqlalchemy/sqlalchemy-1.2.9.ebuild

index fe9d6c4401d2d4bef6d439cbc0bc4863f246c504..4a8b2a2bac4fe3da94beb61aac7d23173d175b80 100644 (file)
@@ -50,17 +50,7 @@ python_compile() {
 }
 
 python_test() {
-       # Create copies of necessary files in BUILD_DIR.
-       # https://bitbucket.org/zzzeek/sqlalchemy/issue/3144/
-       cp -pR examples sqla_nose.py setup.cfg test "${BUILD_DIR}" || die
-       pushd "${BUILD_DIR}" > /dev/null || die
-       if [[ "${EPYTHON}" == "python3.2" ]]; then
-               2to3 --no-diffs -w test || die
-       fi
-       # Recently upstream elected to make the testsuite also pytest capable
-       # "${PYTHON}" sqla_nose.py || die "Testsuite failed under ${EPYTHON}"
-       py.test --verbose test || die "Testsuite failed under ${EPYTHON}"
-       popd > /dev/null
+       pytest -vv test || die "Testsuite failed under ${EPYTHON}"
 }
 
 python_install_all() {