Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pytest-forked
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
pytest-forked
Commits
01697be9
Commit
01697be9
authored
5 months ago
by
Colin Watson
Browse files
Options
Downloads
Patches
Plain Diff
Fix test failure if multiple pytest plugins are installed
parent
9a58e2c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
debian/patches/test-failure-multiple-plugins.patch
+32
-0
32 additions, 0 deletions
debian/patches/test-failure-multiple-plugins.patch
with
39 additions
and
0 deletions
debian/changelog
+
6
−
0
View file @
01697be9
pytest-forked (1.6.0-3) UNRELEASED; urgency=medium
* Fix test failure if multiple pytest plugins are installed.
-- Colin Watson <cjwatson@debian.org> Tue, 17 Dec 2024 00:45:11 +0000
pytest-forked (1.6.0-2) unstable; urgency=medium
* Fix FTBFS with pytest 8 (Closes: #1063961)
...
...
This diff is collapsed.
Click to expand it.
debian/patches/series
+
1
−
0
View file @
01697be9
398f003660dda242b97217390718a2a90c3d7a88.patch
test-failure-multiple-plugins.patch
This diff is collapsed.
Click to expand it.
debian/patches/test-failure-multiple-plugins.patch
0 → 100644
+
32
−
0
View file @
01697be9
From: Colin Watson <cjwatson@debian.org>
Date: Tue, 17 Dec 2024 00:39:08 +0000
Subject: Fix test failure if multiple pytest plugins are installed
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Dependencies can sometimes cause extra pytest plugins to be installed
while running tests: for example, in current Debian, py → pkg-resources
→ inflect → typeguard includes one. The order of plugins that pytest
displays on the `plugins:` line of its output doesn't appear to be
defined, so tolerate variation.
Forwarded: https://github.com/pytest-dev/pytest-forked/pull/93
Last-Update: 2024-12-17
---
testing/test_xfail_behavior.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testing/test_xfail_behavior.py b/testing/test_xfail_behavior.py
index d4e5ee7..2b8946a 100644
--- a/testing/test_xfail_behavior.py
+++ b/testing/test_xfail_behavior.py
@@ -50,7 +50,7 @@
def test_xfail(is_crashing, is_strict, testdir):
expected_word = "XPASS"
session_start_title = "*==== test session starts ====*"
- loaded_pytest_plugins = "plugins: forked*"
+ loaded_pytest_plugins = "plugins:* forked*"
collected_tests_num = "collected 1 item"
expected_progress = f"test_xfail.py {expected_letter!s}*"
failures_title = "*==== FAILURES ====*"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment