From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/twisted/
Date: Fri, 24 Apr 2020 13:07:45 +0000 (UTC) [thread overview]
Message-ID: <1587733656.27c3b87b684cdc2ad666cdbf8d56327cf4e8402d.mgorny@gentoo> (raw)
commit: 27c3b87b684cdc2ad666cdbf8d56327cf4e8402d
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 24 13:05:13 2020 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 13:07:36 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27c3b87b
dev-python/twisted: Fix tests with py3.{6,7}
Closes: https://bugs.gentoo.org/705852
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/twisted/twisted-19.10.0.ebuild | 58 ++++++++++++++-----------------
1 file changed, 26 insertions(+), 32 deletions(-)
diff --git a/dev-python/twisted/twisted-19.10.0.ebuild b/dev-python/twisted/twisted-19.10.0.ebuild
index 1fedad60368..540e74f97ed 100644
--- a/dev-python/twisted/twisted-19.10.0.ebuild
+++ b/dev-python/twisted/twisted-19.10.0.ebuild
@@ -82,19 +82,31 @@ DEPEND="
S=${WORKDIR}/${TWISTED_P}
python_prepare_all() {
- # No allowed tests are garaunteed to work on py3.5 or py3.8
- if use test ; then
- # Remove since this is an upstream distribution test for making releases
- rm src/twisted/python/test/test_release.py || die "rm src/twisted/python/test/test_release.py FAILED"
-
- # Remove these as they are known to fail -- fix (py2.7 - py3.6)
- rm src/twisted/conch/test/test_ckeygen.py || die "rm src/twisted/conch/test/test_ckeygen.py FAILED"
- rm src/twisted/pair/test/test_tuntap.py || die "rm src/twisted/pair/test/test_tuntap.py FAILED"
- rm src/twisted/test/test_log.py || die "rm src/twisted/test/test_log.py FAILED"
+ # puts system in EMFILE state, then the exception handler may fail
+ # trying to open more files due to some gi magic
+ sed -e '/SKIP_EMFILE/s:None:"Fails on non-pristine systems":' \
+ -i src/twisted/internet/test/test_tcp.py || die
+
+ # TODO: times out, i can't find where to increase the timeout
+ sed -e 's:test_manyProcesses:_&:' \
+ -i src/twisted/test/test_process.py || die
+
+ # multicast tests fail within network-sandbox
+ sed -e 's:test_joinLeave:_&:' \
+ -e 's:test_loopback:_&:' \
+ -e 's:test_multiListen:_&:' \
+ -e 's:test_multicast:_&:' \
+ -i src/twisted/test/test_udp.py || die
+
+ # accesses /dev/net/tun
+ sed -e '/class RealDeviceTestsMixin/a\
+ skip = "Requires extra permissions"' \
+ -i src/twisted/pair/test/test_tuntap.py || die
+
+ # TODO: figure it out, probably doesn't accept DST date here
+ sed -e 's:test_getTimezoneOffsetWithoutDaylightSavingTime:_&:' \
+ -i src/twisted/test/test_log.py || die
- # This test fails only on py3.7
- rm src/twisted/internet/test/test_process.py || die " rm src/twisted/internet/test/test_process.py FAILED"
- fi
distutils-r1_python_prepare_all
}
@@ -103,29 +115,11 @@ src_test() {
}
python_test() {
+ # TODO: upstream seems to override our build paths
distutils_install_for_testing
- # workaround for the eclass not installing the entry points
- # in the test environment. copy the old 16.3.2 start script
- # to run the tests with
- cp "${FILESDIR}"/trial "${TEST_DIR}" || die
- chmod +x "${TEST_DIR}"/trial || die
-
- pushd "${TEST_DIR}" > /dev/null || die
-
- if ! "${TEST_DIR}"/trial twisted; then
+ "${EPYTHON}" -m twisted.trial twisted ||
die "Tests failed with ${EPYTHON}"
- fi
-
- if ! "${TEST_DIR}"/trial twisted.test.test_twistd.DaemonizeTests; then
- die "DaemonizeTests failed with ${EPYTHON}"
- fi
-
- if ! "${TEST_DIR}"/trial twisted.test.test_reflect.SafeStrTests; then
- die "SafeStrTests failed with ${EPYTHON}"
- fi
-
- popd > /dev/null || die
}
python_install() {
next reply other threads:[~2020-04-24 13:07 UTC|newest]
Thread overview: 251+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-24 13:07 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-18 12:50 [gentoo-commits] repo/gentoo:master commit in: dev-python/twisted/ Michał Górny
2025-02-18 12:50 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-21 12:27 Michał Górny
2024-12-12 11:24 Sam James
2024-12-07 11:36 Michał Górny
2024-12-03 4:26 Michał Górny
2024-11-23 11:47 Michał Górny
2024-11-23 7:10 Michał Górny
2024-11-17 21:03 Michał Górny
2024-11-16 11:56 Arthur Zamarin
2024-11-16 9:20 Michał Górny
2024-11-16 9:20 Michał Górny
2024-11-16 8:58 Michał Górny
2024-11-16 8:58 Michał Górny
2024-11-16 8:09 Michał Górny
2024-10-30 20:31 Michał Górny
2024-10-30 19:59 Sam James
2024-10-28 4:32 Michał Górny
2024-10-20 3:11 Michał Górny
2024-08-30 6:45 Arthur Zamarin
2024-08-21 15:06 Michał Górny
2024-08-16 10:37 Arthur Zamarin
2024-08-16 3:18 Michał Górny
2024-08-16 3:18 Michał Górny
2024-08-11 19:50 Arthur Zamarin
2024-08-11 10:33 Sam James
2024-08-11 10:26 Sam James
2024-08-11 10:26 Sam James
2024-08-11 10:26 Sam James
2024-08-10 17:20 Petr Vaněk
2024-08-06 12:28 Petr Vaněk
2024-08-06 12:22 Petr Vaněk
2024-07-31 15:20 Petr Vaněk
2024-07-31 15:10 Petr Vaněk
2024-04-29 3:27 Michał Górny
2024-04-09 18:20 Arthur Zamarin
2024-03-22 5:45 Ionen Wolkens
2024-03-07 20:29 Sam James
2024-03-07 20:29 Sam James
2024-03-07 17:09 Michał Górny
2024-03-07 17:09 Michał Górny
2024-03-07 16:19 Michał Górny
2024-03-01 18:33 Michał Górny
2024-02-22 5:38 Michał Górny
2024-01-12 14:04 Sam James
2024-01-11 9:38 Sam James
2023-12-30 1:26 Ionen Wolkens
2023-12-20 2:34 Ionen Wolkens
2023-12-12 13:29 Arthur Zamarin
2023-12-05 20:00 Arthur Zamarin
2023-11-28 5:27 Arthur Zamarin
2023-11-25 9:37 Arthur Zamarin
2023-10-31 19:12 Michał Górny
2023-10-25 7:43 Michał Górny
2023-10-18 9:39 Sam James
2023-10-18 9:39 Sam James
2023-10-18 9:39 Sam James
2023-10-18 9:39 Sam James
2023-10-18 9:39 Sam James
2023-10-06 14:55 Sam James
2023-10-06 14:55 Sam James
2023-10-03 22:37 Sam James
2023-10-03 4:50 Sam James
2023-10-03 4:50 Sam James
2023-10-03 1:51 Sam James
2023-10-03 1:51 Sam James
2023-09-25 22:47 Sam James
2023-09-25 18:54 Arthur Zamarin
2023-08-29 4:59 Michał Górny
2023-08-21 14:51 Michał Górny
2023-07-15 8:49 Arthur Zamarin
2023-05-29 9:31 Michał Górny
2023-05-28 18:11 Sam James
2022-11-08 5:17 Michał Górny
2022-11-08 5:00 Jakov Smolić
2022-11-02 16:15 Sam James
2022-10-31 18:55 Arthur Zamarin
2022-10-31 18:41 Sam James
2022-10-31 18:41 Sam James
2022-10-31 18:29 Arthur Zamarin
2022-10-31 18:29 Arthur Zamarin
2022-10-31 18:29 Arthur Zamarin
2022-10-31 18:27 Arthur Zamarin
2022-10-31 15:49 Michał Górny
2022-10-27 14:57 Michał Górny
2022-10-11 6:47 Agostino Sarubbo
2022-10-10 22:11 Sam James
2022-10-10 19:09 Arthur Zamarin
2022-10-10 18:34 Sam James
2022-10-10 18:34 Sam James
2022-10-10 18:21 Arthur Zamarin
2022-10-10 18:21 Arthur Zamarin
2022-10-10 18:21 Arthur Zamarin
2022-09-09 7:23 Arthur Zamarin
2022-07-04 6:57 Michał Górny
2022-07-04 6:57 Michał Górny
2022-05-27 9:08 Michał Górny
2022-05-27 8:53 Andrew Ammerlaan
2022-05-17 11:11 Michał Górny
2022-05-17 9:24 Agostino Sarubbo
2022-05-17 9:19 Agostino Sarubbo
2022-05-12 7:27 Agostino Sarubbo
2022-05-11 12:58 Agostino Sarubbo
2022-05-11 12:57 Agostino Sarubbo
2022-05-04 4:01 Sam James
2022-04-30 19:11 Sam James
2022-04-13 7:15 Agostino Sarubbo
2022-04-12 18:30 Arthur Zamarin
2022-04-11 19:45 Arthur Zamarin
2022-04-11 16:07 Michał Górny
2022-03-18 12:04 Arthur Zamarin
2022-03-18 8:04 Arthur Zamarin
2022-03-17 8:54 Michał Górny
2022-03-15 17:56 Jakov Smolić
2022-03-09 20:29 Arthur Zamarin
2022-02-17 19:23 Arthur Zamarin
2022-02-16 18:57 Arthur Zamarin
2022-02-11 19:15 Arthur Zamarin
2022-02-11 19:07 Jakov Smolić
2022-02-11 19:07 Jakov Smolić
2022-02-11 12:25 Sam James
2022-02-09 1:25 Sam James
2022-02-08 17:57 Sam James
2022-02-08 12:08 Michał Górny
2022-02-02 9:27 Michał Górny
2022-02-02 9:27 Michał Górny
2022-01-27 22:56 James Le Cuirot
2021-11-28 14:42 Michał Górny
2021-11-28 14:42 Michał Górny
2021-10-16 22:00 Sam James
2021-10-07 6:37 Sam James
2021-09-04 21:39 Sam James
2021-09-03 6:40 Agostino Sarubbo
2021-09-01 18:32 Sam James
2021-08-30 18:00 Sam James
2021-08-30 1:27 Sam James
2021-08-30 1:27 Sam James
2021-07-30 15:37 Sergei Trofimovich
2021-07-25 3:16 Matt Turner
2021-06-10 14:02 Yixun Lan
2021-05-20 13:51 Michał Górny
2021-05-20 9:07 Michał Górny
2021-04-25 10:08 Sam James
2021-04-25 10:08 Sam James
2021-04-25 10:06 Sergei Trofimovich
2021-04-22 23:01 Sam James
2021-04-18 1:52 Sam James
2021-04-18 1:52 Sam James
2021-04-18 1:52 Sam James
2021-04-18 1:47 Sam James
2021-04-17 8:47 Sergei Trofimovich
2021-03-21 22:42 Michał Górny
2021-03-15 7:54 Sam James
2021-03-15 7:44 Sam James
2021-03-15 7:42 Sam James
2021-03-06 15:14 Sergei Trofimovich
2021-03-05 18:39 Sam James
2021-03-04 4:25 Sam James
2021-02-28 21:09 Michał Górny
2020-12-01 10:44 Sam James
2020-08-04 12:01 Michał Górny
2020-06-21 9:22 Sergei Trofimovich
2020-06-04 6:24 Michał Górny
2020-06-03 15:32 Agostino Sarubbo
2020-06-02 21:20 Sergei Trofimovich
2020-06-01 9:03 Mart Raudsepp
2020-05-31 6:58 Michał Górny
2020-05-30 21:09 Sergei Trofimovich
2020-05-27 11:54 Michał Górny
2020-05-18 16:46 Sergei Trofimovich
2020-05-12 6:39 Agostino Sarubbo
2020-05-11 16:47 Agostino Sarubbo
2020-05-11 16:46 Agostino Sarubbo
2020-05-11 11:40 Agostino Sarubbo
2020-05-11 11:28 Agostino Sarubbo
2020-05-09 0:51 Brian Dolbec
2020-05-06 18:45 Mikle Kolyada
2020-05-06 18:43 Mikle Kolyada
2020-05-06 14:28 Mikle Kolyada
2020-05-03 21:55 Sergei Trofimovich
2020-04-28 6:39 Agostino Sarubbo
2020-04-26 23:44 Thomas Deutschmann
2020-04-26 22:51 Thomas Deutschmann
2020-04-26 22:23 Thomas Deutschmann
2020-04-24 19:24 Michał Górny
2020-04-24 14:39 Michał Górny
2020-04-24 8:19 Michał Górny
2020-04-21 12:11 Thomas Deutschmann
2020-03-25 6:08 Georgy Yakovlev
2020-03-25 5:40 Michał Górny
2020-03-14 18:27 Mikle Kolyada
2020-03-09 5:18 Matt Turner
2020-02-27 7:28 Sergei Trofimovich
2020-02-22 20:22 Andreas Sturmlechner
2020-02-13 10:42 Michał Górny
2020-01-22 23:40 Thomas Deutschmann
2020-01-02 9:58 Sergei Trofimovich
2019-12-04 6:48 Aaron Bauman
2019-11-29 20:35 Aaron Bauman
2019-11-28 3:16 Aaron Bauman
2019-11-12 21:08 Mike Gilbert
2019-06-25 12:09 Michael Haubenwallner
2019-03-20 10:31 Fabian Groffen
2019-01-17 20:45 Mikle Kolyada
2018-12-30 19:25 Mikle Kolyada
2018-12-03 14:12 Mikle Kolyada
2018-09-29 8:01 Sergei Trofimovich
2018-09-24 0:32 Joshua Kinard
2018-07-16 20:38 Michał Górny
2018-07-16 19:57 Michał Górny
2018-07-16 14:42 Michał Górny
2018-07-14 17:54 Sergei Trofimovich
2018-07-14 17:54 Sergei Trofimovich
2018-07-08 19:10 Sergei Trofimovich
2018-05-04 15:17 Mart Raudsepp
2018-05-01 18:40 Michał Górny
2018-04-06 5:23 Matt Turner
2018-03-30 18:08 Sergei Trofimovich
2018-02-22 17:02 Michał Górny
2017-10-28 22:34 Sergei Trofimovich
2017-10-05 4:36 Markus Meier
2017-09-24 16:34 Sergei Trofimovich
2017-09-11 20:35 Sergei Trofimovich
2017-07-25 21:30 Brian Dolbec
2017-07-10 21:47 Sergei Trofimovich
2017-07-09 8:02 Markus Meier
2017-07-02 15:02 Sergei Trofimovich
2017-06-28 13:19 Agostino Sarubbo
2017-06-26 20:18 Tobias Klausmann
2017-06-17 17:00 Brian Dolbec
2017-06-17 17:00 Brian Dolbec
2017-05-26 10:16 Tobias Klausmann
2017-04-18 14:17 Jeroen Roovers
2017-04-05 10:44 Michael Weber
2017-04-05 8:44 Michael Weber
2017-03-31 21:28 Brian Dolbec
2017-03-31 21:11 Brian Dolbec
2017-03-30 2:48 Brian Dolbec
2017-03-22 19:48 Markus Meier
2017-03-12 12:30 Anthony G. Basile
2017-02-19 8:40 Markus Meier
2017-02-12 22:20 Zac Medico
2017-01-25 6:39 Jeroen Roovers
2016-10-24 23:17 Brian Dolbec
2016-10-22 1:26 Brian Dolbec
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=1587733656.27c3b87b684cdc2ad666cdbf8d56327cf4e8402d.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