!9 [sync] PR-5: Fix test result missing

From: @openeuler-sync-bot 
Reviewed-by: @desert-sailor 
Signed-off-by: @desert-sailor
This commit is contained in:
openeuler-ci-bot 2024-04-19 02:51:00 +00:00 committed by Gitee
commit aeaa2dbd59
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 28 additions and 2 deletions

View File

@ -0,0 +1,22 @@
From 942fe599a2803dca182d747a6f7248bab722c289 Mon Sep 17 00:00:00 2001
From: desert-sailor <dongxing.wang_a@thundersoft.com>
Date: Sun, 7 Apr 2024 17:08:31 +0800
Subject: [PATCH] Fix test result missing
---
tests/test_frontend_setuptools.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/test_frontend_setuptools.py b/tests/test_frontend_setuptools.py
index 92bfda2..ab6b3dc 100644
--- a/tests/test_frontend_setuptools.py
+++ b/tests/test_frontend_setuptools.py
@@ -172,5 +172,3 @@ def test_result_missing(frontend_setuptools: SubprocessFrontend, tmp_path: Path,
assert exc.exc_msg == f"Backend response file {tmp_path / 'pep517__exit-.json'} is missing"
assert exc.exc_type == "RuntimeError"
assert exc.code == 1
- assert "Traceback" in exc.err
- assert "PermissionError" in exc.err
--
2.43.0

View File

@ -2,12 +2,13 @@
Name: python-pyproject-api
Version: 1.6.1
Release: 1
Release: 2
Summary: API to interact with the python pyproject.toml based projects
License: MIT
URL: https://pyproject-api.readthedocs.org
Source0: https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz
Patch1: 0001-Fix-test-result-missing.patch
BuildArch: noarch
BuildRequires: python3-devel
@ -32,7 +33,7 @@ Summary: %{summary}
%description -n python3-pyproject-api %_description
%prep
%autosetup -n pyproject_api-%{version}
%autosetup -n pyproject_api-%{version} -p1
# Remove unneeded testing deps
sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml
@ -59,6 +60,9 @@ PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus}} \
%{python3_sitelib}/pyproject_api*.dist-info/
%changelog
* Sun Apr 7 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-2
- Fix test result missing
* Mon Jan 15 2024 Dongxing Wang <dongxing.wang_a@thundersoft.com> - 1.6.1-1
- Upgrade version of package to 1.6.1