Skip to content

Commit 8b02754

Browse files
author
REDMOND\aygupta
committed
Skip tests which are expected to fail over symlink
1 parent d2b1a23 commit 8b02754

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from tests.settings import AZURE_ACL_TEST_APPID
1818

1919
test_dir = working_dir()
20+
symlinktestsdisabled = "symlink" not in str(test_dir).lower()
2021

2122
a = posix(test_dir / 'a')
2223
b = posix(test_dir / 'b')
@@ -135,7 +136,7 @@ def test_seek(azure):
135136
for i in range(4):
136137
assert f.seek(i) == i
137138

138-
139+
@pytest.mark.skipif(not symlinktestsdisabled, reason="Concat is not supported over symlinks.")
139140
@my_vcr.use_cassette
140141
def test_concat(azure):
141142
aplus = a + "+file1"
@@ -1043,7 +1044,7 @@ def test_write_blocks(azure):
10431044
assert f.tell() == 9
10441045
assert azure.du(a)[a] == 9
10451046

1046-
1047+
@pytest.mark.skipif(not symlinktestsdisabled, reason="Zero byte append succeeds in Xstore, so this test won't rest expected exception.")
10471048
@my_vcr.use_cassette
10481049
def test_skip_existing_block(azure):
10491050
with azure.open(a, mode='wb') as f:

0 commit comments

Comments
 (0)