commit:     3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 20:36:27 2020 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 20:36:27 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ceace41

dev-python/jupyter_console: Increase test timeout to 5 min

Closes: https://bugs.gentoo.org/734564
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../jupyter_console-6.1.0-increase-test-timeout.patch     | 15 +++++++++++++++
 .../jupyter_console/jupyter_console-6.1.0-r1.ebuild       | 12 ++++++------
 2 files changed, 21 insertions(+), 6 deletions(-)

diff --git 
a/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch
 
b/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch
new file mode 100644
index 00000000000..684ecfc0a84
--- /dev/null
+++ 
b/dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch
@@ -0,0 +1,15 @@
+Very slow CIs take longer on this test
+
+--- a/jupyter_console/tests/test_console.py
++++ b/jupyter_console/tests/test_console.py
+@@ -65,8 +65,8 @@
+     except IOError:
+         raise SkipTest("Couldn't find command %s" % cmd)
+     
+-    # timeout after one minute
+-    t = 60
++    # timeout after 5 minutes
++    t = 300
+     idx = p.expect(r'In \[\d+\]', timeout=t)
+     return p, pexpect, t
+ 

diff --git a/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild 
b/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild
index a17d1256538..f4844cb2c7c 100644
--- a/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild
+++ b/dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild
@@ -20,27 +20,27 @@ RDEPEND="
        dev-python/ipykernel[${PYTHON_USEDEP}]
        dev-python/jupyter_client[${PYTHON_USEDEP}]
        <dev-python/prompt_toolkit-3.1.0[${PYTHON_USEDEP}]
-       dev-python/pygments[${PYTHON_USEDEP}]
-       "
+       dev-python/pygments[${PYTHON_USEDEP}]"
 # util-linux provides script(1)
 BDEPEND="
        test? (
                dev-python/pexpect[${PYTHON_USEDEP}]
                sys-apps/util-linux
-       )
-       "
+       )"
 
 distutils_enable_sphinx docs
 distutils_enable_tests nose
 
 PATCHES=(
        "${FILESDIR}"/${P}-py39.patch
+       "${FILESDIR}"/${P}-increase-test-timeout.patch
 )
 
-src_prepare() {
+python_prepare_all() {
        # use setuptools unconditionally
        sed -i -e 's:distutils\.core:setuptools:' setup.py || die
-       distutils-r1_src_prepare
+
+       distutils-r1_python_prepare_all
 }
 
 python_test() {

Reply via email to