From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-memcached/
Date: Mon, 6 Mar 2023 15:22:37 +0000 (UTC) [thread overview]
Message-ID: <1678116148.3f2247adb5eee61c53c90a0f86adb7125f2559d8.mgorny@gentoo> (raw)
commit: 3f2247adb5eee61c53c90a0f86adb7125f2559d8
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 6 15:13:35 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Mar 6 15:22:28 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f2247ad
dev-python/python-memcached: Use unittest instead of nose
Closes: https://bugs.gentoo.org/888261
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
.../python-memcached/python-memcached-1.59-r1.ebuild | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/dev-python/python-memcached/python-memcached-1.59-r1.ebuild b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild
index b925997aac3d..8a90d01b36a7 100644
--- a/dev-python/python-memcached/python-memcached-1.59-r1.ebuild
+++ b/dev-python/python-memcached/python-memcached-1.59-r1.ebuild
@@ -27,23 +27,23 @@ BDEPEND="
)
"
-distutils_enable_tests nose
+distutils_enable_tests unittest
python_test() {
local pidfile="${TMPDIR}/memcached.pid"
- memcached -d -P "$pidfile" || die "failed to start memcached"
+ memcached -d -P "${pidfile}" || die "failed to start memcached"
- nosetests -v || die "Tests fail with ${EPYTHON}"
+ eunittest || die "Tests fail with ${EPYTHON}"
- kill "$(<"$pidfile")" || die "failed to kill memcached"
+ kill "$(<"${pidfile}")" || die "failed to kill memcached"
local elapsed=0
- while [[ -f "$pidfile" ]]; do
- if [[ $elapsed -ge 30 ]]; then
- kill -KILL "$(<"$pidfile")" || die "failed to kill -KILL memcached"
+ while [[ -f ${pidfile} ]]; do
+ if [[ $(( elapsed++ )) -ge 30 ]]; then
+ kill -KILL "$(<"${pidfile}")" ||
+ die "failed to kill -KILL memcached"
die "memcached failed to stop after 30 seconds"
fi
sleep 1
- let elapsed++
done
}
next reply other threads:[~2023-03-06 15:22 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-06 15:22 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-14 20:35 [gentoo-commits] repo/gentoo:master commit in: dev-python/python-memcached/ Arthur Zamarin
2025-04-12 18:54 Michał Górny
2025-02-27 21:14 Michał Górny
2024-06-16 19:56 Petr Vaněk
2024-02-03 11:44 Michał Górny
2024-02-03 10:10 Arthur Zamarin
2024-01-15 7:18 Michał Górny
2024-01-13 9:33 Michał Górny
2024-01-13 9:29 Arthur Zamarin
2023-12-29 4:38 Michał Górny
2023-12-25 7:06 Michał Górny
2023-11-24 15:45 Arthur Zamarin
2023-06-22 14:36 Michał Górny
2023-04-06 13:25 Michał Górny
2023-04-06 8:23 Arthur Zamarin
2023-03-06 15:22 Michał Górny
2023-03-06 15:22 Michał Górny
2023-03-06 15:22 Michał Górny
2023-03-06 15:22 Michał Górny
2021-06-05 17:59 Michał Górny
2020-11-04 7:34 Michał Górny
2020-11-04 1:05 Sam James
2020-11-02 11:19 Michał Górny
2020-09-30 7:14 Michał Górny
2020-09-29 22:41 Louis Sautier
2020-09-29 22:08 Louis Sautier
2020-07-21 19:17 Kent Fredric
2020-03-17 19:52 Michał Górny
2020-03-17 19:52 Michał Górny
2018-03-24 13:10 Michał Górny
2017-06-04 7:30 Justin Lecher
2017-05-19 21:44 Michael Weber
2017-05-02 17:43 Michał Górny
2016-06-12 18:47 Patrick Lauer
2016-03-25 4:51 Matt Thode
2016-02-28 7:15 Matt Thode
2015-11-16 16:26 Agostino Sarubbo
2015-11-16 16:15 Agostino Sarubbo
2015-10-15 5:25 Matt Thode
2015-09-03 21:29 Matt Thode
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1678116148.3f2247adb5eee61c53c90a0f86adb7125f2559d8.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox