summaryrefslogtreecommitdiffstats
path: root/python-execnet-needssymlink.patch
diff options
context:
space:
mode:
authorOrion Poplawski <orion@nwra.com>2014-06-18 12:06:58 -0600
committerOrion Poplawski <orion@nwra.com>2014-06-18 12:06:58 -0600
commit8c117d15a850987fc44799c8f966f78109be6c3b (patch)
treebcf928cc7f3dbec14b0b61769808124e03d11ae5 /python-execnet-needssymlink.patch
parentb7de25d36ab85a7430051f66c49e97b2878725c5 (diff)
downloadpython-execnet-8c117d15a850987fc44799c8f966f78109be6c3b.tar.gz
python-execnet-8c117d15a850987fc44799c8f966f78109be6c3b.tar.xz
python-execnet-8c117d15a850987fc44799c8f966f78109be6c3b.zip
Add patch to fix failing test with old pytest on EL7
Diffstat (limited to 'python-execnet-needssymlink.patch')
-rw-r--r--python-execnet-needssymlink.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/python-execnet-needssymlink.patch b/python-execnet-needssymlink.patch
new file mode 100644
index 0000000..043146e
--- /dev/null
+++ b/python-execnet-needssymlink.patch
@@ -0,0 +1,29 @@
+diff -up execnet-1.2.0/testing/test_rsync.py.needssymlink execnet-1.2.0/testing/test_rsync.py
+--- execnet-1.2.0/testing/test_rsync.py.needssymlink 2014-06-16 09:26:02.320929971 -0600
++++ execnet-1.2.0/testing/test_rsync.py 2014-06-18 11:42:01.024851339 -0600
+@@ -12,9 +12,6 @@ def pytest_funcarg__gw1(request):
+ )
+ pytest_funcarg__gw2 = pytest_funcarg__gw1
+
+-needssymlink = pytest.mark.skipif(not hasattr(py.path.local, "mksymlinkto"),
+- reason="py.path.local has no mksymlinkto() on this platform")
+-
+ def pytest_funcarg__dirs(request):
+ t = request.getfuncargvalue('tmpdir')
+ class dirs:
+@@ -133,7 +130,6 @@ class TestRSync:
+ mode = destdir.stat().mode
+ assert mode & 511 == 504
+
+- @needssymlink
+ def test_symlink_rsync(self, dirs, gw1):
+ source = dirs.source
+ dest = dirs.dest1
+@@ -149,7 +145,6 @@ class TestRSync:
+ assert dest.join('rellink').readlink() == "subdir/existant"
+ assert dest.join('abslink').readlink() == expected
+
+- @needssymlink
+ def test_symlink2_rsync(self, dirs, gw1):
+ source = dirs.source
+ dest = dirs.dest1