mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-python/argcomplete: Fix test flakiness
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -36,6 +36,8 @@ PATCHES=(
|
||||
# for entry point tests because they read metadata of all installed
|
||||
# packages which can take real long on systems with lots of packages
|
||||
"${FILESDIR}/argcomplete-3.1.6-timeout.patch"
|
||||
# https://github.com/kislyuk/argcomplete/pull/485
|
||||
"${FILESDIR}/${P}-test-bashrc.patch"
|
||||
)
|
||||
|
||||
python_test() {
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/test/test.py b/test/test.py
|
||||
index c8f9419..ca38be6 100755
|
||||
--- a/test/test.py
|
||||
+++ b/test/test.py
|
||||
@@ -73,7 +73,7 @@ def _repl_sh(command, args, non_printable_insert):
|
||||
|
||||
|
||||
def bash_repl(command="bash"):
|
||||
- bashrc = os.path.join(os.path.dirname(pexpect.__file__), "replwrap", "bashrc.sh")
|
||||
+ bashrc = os.path.join(os.path.dirname(pexpect.__file__), "bashrc.sh")
|
||||
sh = _repl_sh(command, ["--rcfile", bashrc], non_printable_insert="\\[\\]")
|
||||
return sh
|
||||
|
||||
Reference in New Issue
Block a user