python-pytest-shutil/0001-modified-path-to-fix-testcase.patch
2020-09-11 15:43:57 +08:00

26 lines
794 B
Diff

From b960d8d90235218a3e1f66a2e59420087e27c14a Mon Sep 17 00:00:00 2001
Subject: [PATCH] cmdline
---
tests/integration/test_cmdline_integration.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/integration/test_cmdline_integration.py b/tests/integration/test_cmdline_integration.py
index 8d92a2e..e99831f 100644
--- a/tests/integration/test_cmdline_integration.py
+++ b/tests/integration/test_cmdline_integration.py
@@ -5,6 +5,7 @@ from pytest_shutil import cmdline
def test_chdir():
here = os.getcwd()
+ bindir=os.path.realpath('/bin')
with cmdline.chdir('/bin'):
- assert os.getcwd() == '/bin'
- assert os.getcwd() == here
\ No newline at end of file
+ assert os.getcwd() == bindir
+ assert os.getcwd() == here
--
2.23.0