Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Lib/test/test_tarfile.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -3694,7 +3694,7 @@ def setUpClass(cls):
else:
raise AssertionError('Could not determine link resolution')
else:
cls.dotdot_resolves_early = True
cls.dotdot_resolves_early = False

@contextmanager
def check_context(self, tar, filter, *, check_flag=True):
Expand DownExpand Up@@ -3842,7 +3842,7 @@ def test_parent_symlink(self):
arc.add('current', symlink_to='.')

# effectively points to ./../
if self.dotdot_resolves_early:
if self.dotdot_resolves_early and os_helper.can_symlink():
arc.add('parent', symlink_to='current/../..')
else:
arc.add('parent', symlink_to='current/..')
Expand Down
Loading