!4 fix test error
From: @jackie_wu123 Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
56cedb83a6
22
0001-fix-test-failures-adpating-to-pytest.patch
Normal file
22
0001-fix-test-failures-adpating-to-pytest.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
From eeeda87c8a1692cc0fbbab3874a8ebaaffeebfd0 Mon Sep 17 00:00:00 2001
|
||||||
|
From: jackie_wu <wutao61@huawei.com>
|
||||||
|
Date: Sat, 9 Jan 2021 10:10:40 +0800
|
||||||
|
Subject: [PATCH] fix test failures adpating to pytest 5.4.3
|
||||||
|
|
||||||
|
---
|
||||||
|
setup.cfg | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/setup.cfg b/setup.cfg
|
||||||
|
index 7fc44bf..76c6845 100644
|
||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-[pytest]
|
||||||
|
+[tool:pytest]
|
||||||
|
addopts = --doctest-modules
|
||||||
|
|
||||||
|
[egg_info]
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -1,12 +1,13 @@
|
|||||||
Name: python-path
|
Name: python-path
|
||||||
Version: 5.2
|
Version: 5.2
|
||||||
Release: 16
|
Release: 17
|
||||||
Summary: Python module wrapper for path
|
Summary: Python module wrapper for path
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/path.py
|
URL: https://pypi.python.org/pypi/path.py
|
||||||
Source0: https://pypi.python.org/packages/source/p/path.py/path.py-%{version}.zip
|
Source0: https://pypi.python.org/packages/source/p/path.py/path.py-%{version}.zip
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel python3-setuptools python3-pytest
|
BuildRequires: python3-devel python3-setuptools python3-pytest
|
||||||
|
Patch0001: 0001-fix-test-failures-adpating-to-pytest.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package implements path objects as first-class entities,
|
This package implements path objects as first-class entities,
|
||||||
@ -20,7 +21,7 @@ This package implements a path objects as first-class entities,
|
|||||||
allowing common operations on files to be invoked on those path objects directly.
|
allowing common operations on files to be invoked on those path objects directly.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n path.py-%{version}
|
%autosetup -n path.py-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%py3_build
|
||||||
@ -37,6 +38,9 @@ cd -
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 9 2021 wutao <wutao61@huawei.com> 5.2-17
|
||||||
|
- fix test failures adpating to pytest
|
||||||
|
|
||||||
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 5.2-16
|
* Wed Oct 21 2020 wangxiao <wangxiao65@huawei.com> - 5.2-16
|
||||||
- drop python2 subpackage
|
- drop python2 subpackage
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user