dev-python/six: Restrict failing tests
authorJustin Lecher <jlec@gentoo.org>
Sun, 1 Nov 2015 18:09:57 +0000 (19:09 +0100)
committerJustin Lecher <jlec@gentoo.org>
Mon, 2 Nov 2015 11:47:12 +0000 (12:47 +0100)
Package-Manager: portage-2.2.23
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/six/six-1.10.0.ebuild

index 465102afe7fe0c19a027b883c502c048fbaad83a..943c0f6c935f0a61114b34e31fc74ccaaceaa74f 100644 (file)
@@ -26,6 +26,16 @@ PATCHES=(
        "${FILESDIR}"/1.9.0-mapping.patch
        )
 
+python_prepare_all() {
+       # https://bitbucket.org/gutworth/six/issues/139/
+       sed \
+               -e 's:test_assertCountEqual:_&:g' \
+               -e 's:test_assertRegex:_&:g' \
+               -e 's:test_assertRaisesRegex:_&:g' \
+               -i test_six.py || die
+       distutils-r1_python_prepare_all
+}
+
 python_compile_all() {
        use doc && emake -C documentation html
 }