!10 Fix build error for python3.11

From: @wk333 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-07-23 05:42:25 +00:00 committed by Gitee
commit 1fc1f21760
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-pytest-forked Name: python-pytest-forked
Version: 1.6.0 Version: 1.6.0
Release: 1 Release: 2
Summary: run tests in isolated forked subprocesses Summary: run tests in isolated forked subprocesses
License: MIT License: MIT
URL: https://github.com/pytest-dev/pytest-forked URL: https://github.com/pytest-dev/pytest-forked
@ -90,7 +90,7 @@ mv %{buildroot}/doclist.lst .
%check %check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} testing PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} testing
rm -f %{buildroot}%{python3_sitelib}/pytest_forked/__pycache__/__init__.cpython-310-pytest-*.pyc rm -f %{buildroot}%{python3_sitelib}/pytest_forked/__pycache__/__init__.cpython-*-pytest-*.pyc
%files -n python3-pytest-forked -f filelist.lst %files -n python3-pytest-forked -f filelist.lst
%dir %{python3_sitelib}/* %dir %{python3_sitelib}/*
@ -99,6 +99,9 @@ rm -f %{buildroot}%{python3_sitelib}/pytest_forked/__pycache__/__init__.cpython-
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Sun Jul 23 2023 wangkai <13474090681@163.com> - 1.6.0-2
- Fix build error for python3.11
* Fri Mar 24 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.6.0-1 * Fri Mar 24 2023 wangjunqi <wangjunqi@kylinos.cn> - 1.6.0-1
- Update package to version 1.6.0 - Update package to version 1.6.0