summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-08-17 22:36:27 +0200
committerDavid Seifert <soap@gentoo.org>2020-08-17 22:36:27 +0200
commit3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768 (patch)
tree788cd5d2d195fa71f3ce9fc593339f2d8b2a1ce7
parentdev-python/jupyter_client: Add missing dep on dev-python/async_generator (diff)
downloadgentoo-3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768.tar.gz
gentoo-3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768.tar.bz2
gentoo-3ceace4184d6cecb81c0ed7c4a9b6c246a6c6768.zip
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@gentoo.org>
-rw-r--r--dev-python/jupyter_console/files/jupyter_console-6.1.0-increase-test-timeout.patch15
-rw-r--r--dev-python/jupyter_console/jupyter_console-6.1.0-r1.ebuild12
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 000000000000..684ecfc0a841
--- /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 a17d12565383..f4844cb2c7c1 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() {