1 |
commit: 694f0879edf58d585dbd53c9a0532c3f1dafefe3 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 5 14:42:44 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 5 17:05:45 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=694f0879 |
7 |
|
8 |
dev-python/pexpect: Fix readline-induced test failures |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pexpect/pexpect-4.8.0-r1.ebuild | 7 +++++++ |
13 |
1 file changed, 7 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pexpect/pexpect-4.8.0-r1.ebuild b/dev-python/pexpect/pexpect-4.8.0-r1.ebuild |
16 |
index cbcceab7520..f1f772edbe3 100644 |
17 |
--- a/dev-python/pexpect/pexpect-4.8.0-r1.ebuild |
18 |
+++ b/dev-python/pexpect/pexpect-4.8.0-r1.ebuild |
19 |
@@ -32,6 +32,13 @@ python_compile_all() { |
20 |
use doc && emake -C doc html |
21 |
} |
22 |
|
23 |
+src_test() { |
24 |
+ # workaround new readline defaults |
25 |
+ echo "set enable-bracketed-paste off" > "${T}"/inputrc || die |
26 |
+ local -x INPUTRC="${T}"/inputrc |
27 |
+ distutils-r1_src_test |
28 |
+} |
29 |
+ |
30 |
python_install() { |
31 |
distutils-r1_python_install |
32 |
if ! python_is_python3; then |