add 1.patch

modified pytest-shutil-1.2.6.tar.gz
modified python-pytest-shutil.spec
This commit is contained in:
wwx913452 2020-05-21 16:02:42 +08:00
parent 6d9db88fe5
commit 63896f2199
3 changed files with 14 additions and 1 deletions

12
1.patch Normal file
View File

@ -0,0 +1,12 @@
diff -Nur pytest-shutil-1.2.6/tests/integration/test_cmdline_integration.py pytest-shutil-1.2.6-b/tests/integration/test_cmdline_integration.py
--- pytest-shutil-1.2.6/tests/integration/test_cmdline_integration.py 2020-05-21 15:37:42.093380714 +0800
+++ pytest-shutil-1.2.6-b/tests/integration/test_cmdline_integration.py 2020-05-21 15:38:09.749498633 +0800
@@ -5,6 +5,7 @@
def test_chdir():
here = os.getcwd()
+ bindir=os.path.realpath('/bin')
with cmdline.chdir('/bin'):
- assert os.getcwd() == '/bin'
+ assert os.getcwd() == bindir
assert os.getcwd() == here

Binary file not shown.

View File

@ -4,7 +4,8 @@ Release: 6
Summary: A goodie-bag of unix shell and environment tools for py.test
License: MIT
URL: https://pypi.python.org/pypi/pytest-shutil
Source0: https://files.pythonhosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
Source0: https://files.pythonihosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
Patch0000: 1.patch
BuildArch: noarch