commit:     916649ceeb328dc7b332ee5cbc70cd7c84ee37cb
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 28 21:30:02 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan 28 21:50:29 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=916649ce

dev-python/pytest: Deselect tests fragile to pytest plugins

Deselect the tests that explicitly patch PYTEST_DISABLE_PLUGIN_AUTOLOAD
out and therefore fail when some pytest plugins are installed.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pytest/pytest-6.2.5-r2.ebuild | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/dev-python/pytest/pytest-6.2.5-r2.ebuild 
b/dev-python/pytest/pytest-6.2.5-r2.ebuild
index c55df4717bb1..6679e63a6906 100644
--- a/dev-python/pytest/pytest-6.2.5-r2.ebuild
+++ b/dev-python/pytest/pytest-6.2.5-r2.ebuild
@@ -58,6 +58,19 @@ python_test() {
        local EPYTEST_DESELECT=(
                # broken by epytest args
                testing/test_warnings.py::test_works_with_filterwarnings
+
+               # tend to be broken by random pytest plugins
+               # (these tests patch PYTEST_DISABLE_PLUGIN_AUTOLOAD out)
+               testing/test_helpconfig.py::test_version_less_verbose
+               testing/test_helpconfig.py::test_version_verbose
+               testing/test_junitxml.py::test_random_report_log_xdist
+               testing/test_junitxml.py::test_runs_twice_xdist
+               
testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal
+               
testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal_count
+               
testing/test_terminal.py::TestProgressOutputStyle::test_xdist_verbose
+               
testing/test_terminal.py::TestProgressWithTeardown::test_xdist_normal
+               
testing/test_terminal.py::TestTerminalFunctional::test_header_trailer_info
+               
testing/test_terminal.py::TestTerminalFunctional::test_no_header_trailer_info
        )
 
        epytest -p xdist -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"

Reply via email to