LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-DEPEND="test? (
- dev-python/pytest
- dev-python/freezegun
- )"
+DEPEND="
+ test? (
+ dev-python/freezegun[${PYTHON_USEDEP}]
+ )"
RDEPEND=""
+distutils_enable_tests pytest
+
src_install() {
distutils-r1_src_install
dodoc README.rst HISTORY.rst CONTRIBUTING.rst AUTHORS.rst
}
-
-python_test() {
- local ignore=""
- if [[ ${EPYTHON} == python2.7 ]]; then
- ignore="--ignore=tests/test_coroutine_cached_property.py \
- --ignore=tests/test_async_cached_property.py"
- fi
- if [[ ${EPYTHON} == python3.4 ]]; then
- ignore="--ignore=test_async_cached_property.py"
- fi
- py.test -v ${ignore} tests/ || die
-}