summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {