diff options
Diffstat (limited to 'dev-python/redis-py')
| -rw-r--r-- | dev-python/redis-py/redis-py-4.0.2.ebuild | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/dev-python/redis-py/redis-py-4.0.2.ebuild b/dev-python/redis-py/redis-py-4.0.2.ebuild index e7c09c276083..267c6a01dfc4 100644 --- a/dev-python/redis-py/redis-py-4.0.2.ebuild +++ b/dev-python/redis-py/redis-py-4.0.2.ebuild @@ -3,7 +3,7 @@ EAPI=8 -PYTHON_COMPAT=( python3_{9..10} pypy3 ) +PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 ) inherit distutils-r1 MY_PN="redis" @@ -30,6 +30,15 @@ BDEPEND=" distutils_enable_tests pytest python_test() { + local EPYTEST_DESELECT=( + # flaky test + tests/test_pubsub.py::TestPubSubDeadlock::test_pubsub_deadlock + ) + + epytest -k "not redismod" +} + +src_test() { local redis_pid="${T}"/redis.pid local redis_port=6379 local redis_test_config=" @@ -47,16 +56,8 @@ python_test() { "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die # Run the tests - epytest -k "not redismod" + distutils-r1_src_test # Clean up afterwards - local pid=$(<"${redis_pid}") - kill "${pid}" || die - local retries=10 - while [[ -f ${redis_pid} ]]; do - sleep 1 - if [[ $(( retries-- )) -eq 0 ]]; then - die "redis did not stop" - fi - done + kill "$(<"${redis_pid}")" || die } |
