commit: e7c961f4193e66b95d9c4a16cfc89e5b98bac4ad
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Sat Oct 23 13:52:42 2021 +0000
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
CommitDate: Sat Oct 23 14:02:22 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7c961f4
dev-python/manhole: deselect test_log_fh on pypy3
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
dev-python/manhole/manhole-1.8.0-r1.ebuild | 33 ++++++++++++++++++++----------
1 file changed, 22 insertions(+), 11 deletions(-)
diff --git a/dev-python/manhole/manhole-1.8.0-r1.ebuild
b/dev-python/manhole/manhole-1.8.0-r1.ebuild
index 191643bea..ba33885ff 100644
--- a/dev-python/manhole/manhole-1.8.0-r1.ebuild
+++ b/dev-python/manhole/manhole-1.8.0-r1.ebuild
@@ -34,14 +34,25 @@ DOCS=( AUTHORS.rst CHANGELOG.rst README.rst )
distutils_enable_sphinx docs dev-python/sphinx-py3doc-enhanced-theme
distutils_enable_tests --install pytest
-EPYTEST_DESELECT=(
- "tests/test_manhole.py::test_non_daemon_connection"
- "tests/test_manhole.py::test_daemon_connection"
- "tests/test_manhole.py::test_uwsgi"
- "tests/test_manhole.py::test_fork_exec"
- "tests/test_manhole.py::test_connection_handler_exec[str]"
- "tests/test_manhole.py::test_connection_handler_exec[func]"
- "tests/test_manhole.py::test_environ_variable_activation"
- "tests/test_manhole.py::test_stderr_doesnt_deadlock"
- "tests/test_manhole_cli.py"
-)
+python_test() {
+ local EPYTEST_DESELECT=(
+ tests/test_manhole.py::test_connection_handler_exec
+ tests/test_manhole.py::test_non_daemon_connection
+ tests/test_manhole.py::test_daemon_connection
+ tests/test_manhole.py::test_fork_exec
+ tests/test_manhole.py::test_uwsgi
+ tests/test_manhole_cli.py::test_help
+ )
+
+ # usually passes but sometimes fails (bug #792225)
+ EPYTEST_DESELECT+=( tests/test_manhole.py::test_stderr_doesnt_deadlock )
+
+ if [[ ${EPYTHON} == pypy3 ]]; then
+ EPYTEST_DESELECT+=(
+ tests/test_manhole.py::test_log_fh
+ tests/test_manhole.py::test_environ_variable_activation
+ )
+ fi
+
+ epytest
+}