dev-python/invoke: RESTRICT test

Depends on pytest-relaxed which is about to be last-rited.

Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
This commit is contained in:
Virgil Dupras
2019-05-10 13:59:58 -04:00
parent e2c50cb29e
commit cb382ae7ce

View File

@@ -12,23 +12,10 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
IUSE=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/mock
>=dev-python/pytest-3.0
>=dev-python/pytest-relaxed-1.1.4
)"
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
PATCHES=(
"${FILESDIR}/${PN}-1.1.0-skip-pty-tests.patch"
)
python_test() {
# -s flag is important: tests fail when pytest isn't in "no capture" mode
# -p pytest_relaxed: this plugin has to be loaded explicitly
pytest -s -v -p pytest_relaxed.plugin || die "Tests failed"
}
# Depends on broken pytest-relaxed plugin
RESTRICT="test"