commit:     7fd8437a4af8ae520eff384569e4a163449d3ccb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 12 07:39:25 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 12 08:36:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fd8437a

dev-python/watchdog: Enable pypy3

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/watchdog/watchdog-2.1.1.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/watchdog/watchdog-2.1.1.ebuild 
b/dev-python/watchdog/watchdog-2.1.1.ebuild
index 0b8865d4eef..e022224d86e 100644
--- a/dev-python/watchdog/watchdog-2.1.1.ebuild
+++ b/dev-python/watchdog/watchdog-2.1.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{7..9} pypy3 )
 inherit distutils-r1 optfeature
 
 DESCRIPTION="Python API and shell utilities to monitor file system events"
@@ -30,7 +30,12 @@ src_prepare() {
 }
 
 python_test() {
-       epytest -p no:django
+       local deselect=()
+       [[ ${EPYTHON} == pypy3 ]] && deselect+=(
+               tests/test_inotify_buffer.py::test_move_internal_batch
+       )
+
+       epytest -p no:django ${deselect[@]/#/--deselect }
 }
 
 pkg_postinst() {

Reply via email to