diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-09 09:38:04 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-05-09 09:38:04 +0000 |
| commit | 11c57b2987e06bf35a84672a4e560212fc363804 (patch) | |
| tree | e1860cb34d71b1ed7fedeb81e996044324acf10c /dev-python/pytest-xdist | |
| parent | 49d6eff372ef65c2d900b06355a7169f8c771c6a (diff) | |
| download | baldeagleos-repo-11c57b2987e06bf35a84672a4e560212fc363804.tar.gz baldeagleos-repo-11c57b2987e06bf35a84672a4e560212fc363804.tar.xz baldeagleos-repo-11c57b2987e06bf35a84672a4e560212fc363804.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-xdist')
| -rw-r--r-- | dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch | 64 | ||||
| -rw-r--r-- | dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild | 12 |
2 files changed, 72 insertions, 4 deletions
diff --git a/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch b/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch new file mode 100644 index 000000000000..c39a004664bb --- /dev/null +++ b/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch @@ -0,0 +1,64 @@ +From 0c984478f39d7a01aa24c061f2581bdfd071cb6a Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <bruno@soliv.dev> +Date: Sun, 2 Nov 2025 10:18:21 -0300 +Subject: [PATCH] Adapt test to also worth with pytest-main + +--- + testing/test_newhooks.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/testing/test_newhooks.py b/testing/test_newhooks.py +index e3a8ac6f..9091ed31 100644 +--- a/testing/test_newhooks.py ++++ b/testing/test_newhooks.py +@@ -115,7 +115,7 @@ def pytest_handlecrashitem(crashitem, report, sched): + res.stdout.fnmatch_lines_random(["*HOOK: pytest_handlecrashitem"]) + res.stdout.fnmatch_lines( + [ +- "FAILED test_handlecrashitem_one.py::test_b", +- "FAILED test_handlecrashitem_one.py::test_b", ++ "FAILED test_handlecrashitem_one.py::test_b*", ++ "FAILED test_handlecrashitem_one.py::test_b*", + ] + ) +From 44f4bea2652e06e7cd5d4a063aa2673b5ef701ee Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <nicoddemus@gmail.com> +Date: Tue, 11 Nov 2025 08:00:23 -0300 +Subject: [PATCH] Fix CI for pytest 9.0+ (#1272) + +--- + testing/test_remote.py | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/testing/test_remote.py b/testing/test_remote.py +index 909f7ca2..ae82e2b7 100644 +--- a/testing/test_remote.py ++++ b/testing/test_remote.py +@@ -378,6 +378,11 @@ def test_mainargv(request): + + + def test_remote_usage_prog(pytester: pytest.Pytester) -> None: ++ if pytest.version_tuple[:2] >= (9, 0): ++ get_optparser_expr = "get_config_parser.optparser" ++ else: ++ get_optparser_expr = "get_config_parser._getparser()" ++ + pytester.makeconftest( + """ + import pytest +@@ -394,12 +399,12 @@ def pytest_configure(config): + """ + ) + pytester.makepyfile( +- """ ++ f""" + import sys + + def test(get_config_parser, request): +- get_config_parser._getparser().error("my_usage_error") +- """ ++ {get_optparser_expr}.error("my_usage_error") ++ """ + ) + + result = pytester.runpytest_subprocess("-n1") diff --git a/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild index 8b224d8fe0ba..7eaef3c4501c 100644 --- a/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild +++ b/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild @@ -32,12 +32,16 @@ BDEPEND=" ) " -EPYTEST_PLUGINS=() +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +EPYTEST_PLUGINS=( "${PN}" ) distutils_enable_tests pytest -python_test() { - # force loading necessary plugins in subprocesses - local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail +PATCHES=( + # https://github.com/pytest-dev/pytest-xdist/commit/0c984478f39d7a01aa24c061f2581bdfd071cb6a + # https://github.com/pytest-dev/pytest-xdist/commit/44f4bea2652e06e7cd5d4a063aa2673b5ef701ee + "${FILESDIR}/${P}-pytest-9.patch" +) +python_test() { epytest -o tmp_path_retention_count=1 } |
