diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-05-19 14:47:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-05-19 14:47:23 +0200 |
commit | e4ecc6474b6089a95e62b29432ee33dad795075e (patch) | |
tree | cb3cdeb9f74ffe1fcabe6178c16674ac8f3376ea /dev-python | |
parent | dev-python/uvloop: Add test-dep on psutil (diff) | |
download | gentoo-e4ecc6474b6089a95e62b29432ee33dad795075e.tar.gz gentoo-e4ecc6474b6089a95e62b29432ee33dad795075e.tar.bz2 gentoo-e4ecc6474b6089a95e62b29432ee33dad795075e.zip |
dev-python/jsonpickle: Run tests via pytest
Closes: https://bugs.gentoo.org/723592
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild b/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild index 89fea2e3b88c..f62eec6bfb7e 100644 --- a/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild +++ b/dev-python/jsonpickle/jsonpickle-1.4.1-r1.ebuild @@ -30,18 +30,18 @@ BDEPEND=" dev-python/toml[${PYTHON_USEDEP}]" distutils_enable_sphinx "docs/source" +distutils_enable_tests pytest python_prepare_all() { # too many dependencies rm tests/pandas_test.py || die sed -e '/pandas/ d' -i tests/runtests.py || die + sed -i -e 's:--flake8 --black --cov --cov-append::' pytest.ini || die + distutils-r1_python_prepare_all } python_test() { - # An apparent regression in tests - # https://github.com/jsonpickle/jsonpickle/issues/124 - einfo "testsuite has optional tests for package demjson" - "${EPYTHON}" tests/runtests.py || die "tests failed with ${EPYTHON}" + pytest -vv tests || die "Tests failed with ${EPYTHON}" } |