summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2017-01-21 02:12:37 +0100
committerDavid Seifert <soap@gentoo.org>2017-01-21 02:34:51 +0100
commitb65d70485ffbbdc71adc83b3ed91aa00cc309bfe (patch)
treeab0c7b18703d4ca831f2630152e33f9feb584195 /dev-python/typing
parentdev-python/flake8: Version bump to 3.2.1 (diff)
downloadgentoo-b65d70485ffbbdc71adc83b3ed91aa00cc309bfe.tar.gz
gentoo-b65d70485ffbbdc71adc83b3ed91aa00cc309bfe.tar.bz2
gentoo-b65d70485ffbbdc71adc83b3ed91aa00cc309bfe.zip
dev-python/typing: Add pypy and pypy3 to PYTHON_COMPAT
* Also fix test suite to actually run when FEATURES=test is set Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-python/typing')
-rw-r--r--dev-python/typing/typing-3.5.2.2.ebuild11
1 files changed, 9 insertions, 2 deletions
diff --git a/dev-python/typing/typing-3.5.2.2.ebuild b/dev-python/typing/typing-3.5.2.2.ebuild
index 60885d133af4..1b87eadc8037 100644
--- a/dev-python/typing/typing-3.5.2.2.ebuild
+++ b/dev-python/typing/typing-3.5.2.2.ebuild
@@ -4,7 +4,7 @@
EAPI=6
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5} pypy{,3} )
inherit distutils-r1
@@ -21,5 +21,12 @@ DEPEND=""
RDEPEND=""
python_test() {
- "${EPYTHON}" -m unittest discover || die "tests failed under ${EPYTHON}"
+ cd "${BUILD_DIR}" || die
+ if [[ ${EPYTHON} == python2* || ${EPYTHON} == pypy ]]; then
+ cp "${S}"/python2/test_typing.py . || die
+ else
+ cp "${S}"/src/test_typing.py . || die
+ fi
+
+ "${EPYTHON}" test_typing.py || die "tests failed under ${EPYTHON}"
}