Projects
Eulaceura:Factory
python-pytest-virtualenv
_service:obs_scm:0001-discard-invalid-package-i...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0001-discard-invalid-package-info-when-it-is-deprecated.patch of Package python-pytest-virtualenv
From 0ec69cf350d7e5b3509d3c98860169145f72b25b Mon Sep 17 00:00:00 2001 From: wang__ge <wang__ge@126.com> Date: Sun, 7 Apr 2024 15:42:22 +0800 Subject: [PATCH] discard invalid package info when it is deprecated --- pytest_virtualenv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pytest_virtualenv.py b/pytest_virtualenv.py index dbaf45b..fd7a0f8 100644 --- a/pytest_virtualenv.py +++ b/pytest_virtualenv.py @@ -226,6 +226,7 @@ class VirtualEnv(Workspace): "for i in working_set: print(i.project_name + ' ' + i.version + ' ' + i.location)" lines = self.run([self.python, "-c", code], capture=True).split('\n') for line in [i.strip() for i in lines if i.strip()]: - name, version, location = line.split() - res[name] = PackageEntry(name, version, location) + if (not 'DeprecationWarning:' in line.split()): + name, version, location = line.split() + res[name] = PackageEntry(name, version, location) return res -- 2.43.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2