summaryrefslogtreecommitdiff
path: root/dev-python/pytest-mock
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-22 13:42:34 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-22 13:42:34 +0000
commit2cd754d3dd4de0ad180ea3566d701909f3467fba (patch)
treec6f18304e62e9d409c62e2da377cc78321f5c513 /dev-python/pytest-mock
parent0001b67ba5df1978ba03a59687b51929cf96c8ce (diff)
downloadbaldeagleos-repo-2cd754d3dd4de0ad180ea3566d701909f3467fba.tar.gz
baldeagleos-repo-2cd754d3dd4de0ad180ea3566d701909f3467fba.tar.xz
baldeagleos-repo-2cd754d3dd4de0ad180ea3566d701909f3467fba.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-mock')
-rw-r--r--dev-python/pytest-mock/pytest-mock-3.6.1.ebuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild
index 72f92902f51f..6c8357849554 100644
--- a/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild
+++ b/dev-python/pytest-mock/pytest-mock-3.6.1.ebuild
@@ -19,14 +19,18 @@ BDEPEND="dev-python/setuptools_scm[${PYTHON_USEDEP}]"
distutils_enable_tests pytest
+src_prepare() {
+ sed -e 's/runpytest_subprocess(/&"-p","no:xprocess",/' -i tests/test_pytest_mock.py || die
+ distutils-r1_src_prepare
+}
+
python_test() {
- local deselect=()
if has_version dev-python/mock; then
- deselect+=(
+ local EPYTEST_DESELECT=(
tests/test_pytest_mock.py::test_standalone_mock
)
fi
distutils_install_for_testing
- epytest --assert=plain ${deselect[@]/#/--deselect }
+ epytest --assert=plain
}