diff --git a/1.patch b/1.patch new file mode 100644 index 0000000..2c57118 --- /dev/null +++ b/1.patch @@ -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 diff --git a/pytest-shutil-1.2.6.tar.gz b/pytest-shutil-1.2.6.tar.gz index 829667f..1dd6015 100644 Binary files a/pytest-shutil-1.2.6.tar.gz and b/pytest-shutil-1.2.6.tar.gz differ diff --git a/python-pytest-shutil.spec b/python-pytest-shutil.spec index 683985b..783f4e9 100644 --- a/python-pytest-shutil.spec +++ b/python-pytest-shutil.spec @@ -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