FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-57911: Fix failing symlink test by wiomoc · Pull Request #138626 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions Lib/test/test_tarfile.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff 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 Down Expand 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

Back | FazBrowse Home | New Git URL