diff options
author | Julien Roy <julien@jroy.ca> | 2023-02-08 00:17:57 -0500 |
---|---|---|
committer | Julien Roy <julien@jroy.ca> | 2023-02-08 00:17:57 -0500 |
commit | a7e92a62528e85ad1bf3eafc8c824aa0ce066386 (patch) | |
tree | 4db8e59f8db74a6f7cbf651646be488b8a4923b6 /dev-python/persistent/persistent-5.0.ebuild | |
parent | 39e99b03c3bdb85f20423662f9319b0edf0ddc85 (diff) | |
download | MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.tar.gz MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.tar.bz2 MrRoy-Overlay-a7e92a62528e85ad1bf3eafc8c824aa0ce066386.zip |
dev-python/*: WIP tests
Signed-off-by: Julien Roy <julien@jroy.ca>
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 +} |