commit:     694f0879edf58d585dbd53c9a0532c3f1dafefe3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May  5 14:42:44 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May  5 17:05:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=694f0879

dev-python/pexpect: Fix readline-induced test failures

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

 dev-python/pexpect/pexpect-4.8.0-r1.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-python/pexpect/pexpect-4.8.0-r1.ebuild 
b/dev-python/pexpect/pexpect-4.8.0-r1.ebuild
index cbcceab7520..f1f772edbe3 100644
--- a/dev-python/pexpect/pexpect-4.8.0-r1.ebuild
+++ b/dev-python/pexpect/pexpect-4.8.0-r1.ebuild
@@ -32,6 +32,13 @@ python_compile_all() {
        use doc && emake -C doc html
 }
 
+src_test() {
+       # workaround new readline defaults
+       echo "set enable-bracketed-paste off" > "${T}"/inputrc || die
+       local -x INPUTRC="${T}"/inputrc
+       distutils-r1_src_test
+}
+
 python_install() {
        distutils-r1_python_install
        if ! python_is_python3; then

Reply via email to