dev-python/PyGithub: Disable a test requiring network access
authorMichał Górny <mgorny@gentoo.org>
Wed, 18 Jul 2018 12:52:17 +0000 (14:52 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 18 Jul 2018 12:54:35 +0000 (14:54 +0200)
dev-python/PyGithub/PyGithub-1.40_alpha4.ebuild

index e44864c83d71eb75c49ff01e67e352e0c5483989..eadab26e792a5abf808c9857047e7f0eaf95e309 100644 (file)
@@ -25,6 +25,13 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/${MY_P}
 
+python_prepare_all() {
+       # tests requiring network access
+       sed -i -e 's:testDecodeJson:_&:' github/tests/Issue142.py || die
+
+       distutils-r1_python_prepare_all
+}
+
 python_test() {
        esetup.py test
 }