dev-python/QtPy: move virtx so failure is not ignored

Closes: https://bugs.gentoo.org/829145
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2021-12-15 16:33:05 +01:00
parent b6c00864ac
commit fa0684ea0e

View File

@@ -122,16 +122,12 @@ src_prepare() {
sed -i -e "s/from PySide.QtCore import/raise ImportError #/" qtpy/__init__.py || die
}
src_test() {
virtx python_foreach_impl python_test
}
python_test() {
if use pyqt5; then
QT_API="pyqt5" epytest
virtx QT_API="pyqt5" epytest
fi
if use pyside2; then
QT_API="pyside2" epytest
virtx QT_API="pyside2" epytest
fi
}