dev-python/pypy: Skip broken tests
authorMichał Górny <mgorny@gentoo.org>
Fri, 17 Jan 2020 14:55:07 +0000 (15:55 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 17 Jan 2020 18:35:48 +0000 (19:35 +0100)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/pypy/pypy-7.3.0.ebuild

index 23373c0fbe6eb382acb82ca28450412674966505..255575b2dbe763a92fc9c24f3e7e0b1a672145c2 100644 (file)
@@ -52,6 +52,23 @@ src_prepare() {
        eapply -p2 "${WORKDIR}/${PATCHSET}"/0010-use_pyxml.patch
        popd > /dev/null || die
 
+       # this test relies on pypy-c hardcoding correct build time paths
+       sed -i -e 's:test_executable_without_cwd:_&:' \
+               lib-python/2.7/test/test_subprocess.py || die
+       # this one seems to rely on cpython gc handling (?)
+       sed -i -e 's:test_number_of_objects:_&:' \
+               lib-python/2.7/test/test_multiprocessing.py || die
+       # hardcoded assumptions (?)
+       sed -i -e 's:test_alpn_protocols:_&:' \
+               -e 's:test_default_ecdh_curve:_&:' \
+               lib-python/2.7/test/test_ssl.py || die
+       # requires Internet
+       sed -i -e '/class NetworkedTests/i@unittest.skip("Requires networking")' \
+               lib-python/2.7/test/test_ssl.py || die
+       # TODO: investigate (sandbox?)
+       sed -i -e 's:test__copy_to_each:_&:' \
+               lib-python/2.7/test/test_pty.py || die
+
        eapply_user
 }