Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyGithub/
Date: Wed, 18 Jul 2018 12:54:45
Message-Id: 1531918475.165f74d1e6762968cbedc0385cedb6ab75591f57.mgorny@gentoo
1 commit: 165f74d1e6762968cbedc0385cedb6ab75591f57
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 18 12:52:17 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 18 12:54:35 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=165f74d1
7
8 dev-python/PyGithub: Disable a test requiring network access
9
10 dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild | 7 +++++++
11 1 file changed, 7 insertions(+)
12
13 diff --git a/dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild b/dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild
14 index e44864c83d7..eadab26e792 100644
15 --- a/dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild
16 +++ b/dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild
17 @@ -25,6 +25,13 @@ DEPEND="${RDEPEND}
18
19 S=${WORKDIR}/${MY_P}
20
21 +python_prepare_all() {
22 + # tests requiring network access
23 + sed -i -e 's:testDecodeJson:_&:' github/tests/Issue142.py || die
24 +
25 + distutils-r1_python_prepare_all
26 +}
27 +
28 python_test() {
29 esetup.py test
30 }