forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-python/pytest-cov: enable py3.11
Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
7fcbad1
commit f67cb41
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
dev-python/pytest-cov/files/pytest-cov-4.0.0-pytest-xdist-2.5.0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
https://github.com/pytest-dev/pytest-cov/issues/566 | ||
https://github.com/pytest-dev/pytest-cov/pull/565 | ||
|
||
From 97483386bde4febe7ff48726f887cc6423d308b9 Mon Sep 17 00:00:00 2001 | ||
From: Chedi <[email protected]> | ||
Date: Tue, 15 Nov 2022 11:18:31 +0100 | ||
Subject: [PATCH] disabling boxed test if version xdist newer than 2.5.0 | ||
|
||
--- a/tests/test_pytest_cov.py | ||
+++ b/tests/test_pytest_cov.py | ||
@@ -1555,7 +1555,8 @@ def test_foo(): | ||
|
||
SCRIPT_SIMPLE_RESULT = '4 * 100%' | ||
|
||
- | ||
+@pytest.mark.skipif('tuple(map(int, xdist.__version__.split("."))) >= (2, 5, 0)', | ||
+ reason="--boxed option was removed in version 2.5.0") | ||
@pytest.mark.skipif('sys.platform == "win32"') | ||
def test_dist_boxed(testdir): | ||
script = testdir.makepyfile(SCRIPT_SIMPLE) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters