diff options
Diffstat (limited to 'dev-python/persistent/persistent-5.0.ebuild')
-rw-r--r-- | dev-python/persistent/persistent-5.0.ebuild | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/dev-python/persistent/persistent-5.0.ebuild b/dev-python/persistent/persistent-5.0.ebuild index f3f32d7..6cd2ea8 100644 --- a/dev-python/persistent/persistent-5.0.ebuild +++ b/dev-python/persistent/persistent-5.0.ebuild @@ -15,8 +15,6 @@ SRC_URI="https://github.com/zopefoundation/persistent/archive/${PV}.tar.gz -> ${ LICENSE="ZPL" SLOT="0" KEYWORDS="~amd64" -# Zope Testrunner -RESTRICT="test" RDEPEND=" dev-python/cffi[${PYTHON_USEDEP}] @@ -30,17 +28,17 @@ RDEPEND=" DEPEND="${RDEPEND}" distutils_enable_sphinx docs -distutils_enable_tests unittest +distutils_enable_tests setup.py src_unpack() { default - # Fix broken test - sed -i -e 's/from \.\./from persistent/' "${S}/src/persistent/tests/test_ring.py" || die - # Disable tests that fail - sed -z -i -e "s/def test__p_repr_exception.*_p_repr failed')>\")//g" \ - "${S}/src/persistent/tests/test_persistence.py" || die - sed -z -i -e "s/def test__p_repr_in_instance_ignored.*repr(p)//g" \ - "${S}/src/persistent/tests/test_persistence.py" || die + # # Fix broken test + # sed -i -e 's/from \.\./from persistent/' "${S}/src/persistent/tests/test_ring.py" || die + # # Disable tests that fail + # sed -z -i -e "s/def test__p_repr_exception.*_p_repr failed')>\")//g" \ + # "${S}/src/persistent/tests/test_persistence.py" || die + # sed -z -i -e "s/def test__p_repr_in_instance_ignored.*repr(p)//g" \ + # "${S}/src/persistent/tests/test_persistence.py" || die } python_compile_all() { @@ -52,7 +50,7 @@ python_compile_all() { rm "${BUILD_DIR}/install$(python_get_sitedir)/zope/__init__.py" } -# src_test() { -# cd "${S}/src/persistent" || die -# distutils-r1_src_test -# } +python_test() { + zope-testrunner -pvc -j "$(nproc)" --usecompiled \ + --path "${BUILD_DIR}/install$(python_get_sitedir)/${PN}" || die +} |