commit:     24ff936b7356b3edc52020ffb4728f5ffd8dd417
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 20 13:05:07 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 20 13:51:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24ff936b

dev-python/httpbin: Skip failing tests

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/httpbin/httpbin-0.7.0-r2.ebuild | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild 
b/dev-python/httpbin/httpbin-0.7.0-r2.ebuild
index 45fbfbcc791..e680f602c43 100644
--- a/dev-python/httpbin/httpbin-0.7.0-r2.ebuild
+++ b/dev-python/httpbin/httpbin-0.7.0-r2.ebuild
@@ -36,3 +36,14 @@ PATCHES=(
 )
 
 distutils_enable_tests unittest
+
+src_prepare() {
+       # a new version of flask or whatever converts relative redirects
+       # to absolute; this package is dead anyway, so just skip
+       # the relevant tests
+       sed -e 's:test_redirect:_&:' \
+               -e 's:test_relative:_&:' \
+               -i test_httpbin.py || die
+
+       distutils-r1_src_prepare
+}

Reply via email to