Skip to content

Commit f5544e6

Browse files
committed
Use a better skip
1 parent aeebdc8 commit f5544e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3786,12 +3786,10 @@ def test_parent_symlink(self):
37863786
self.expect_file('parent/evil')
37873787

37883788
@symlink_test
3789+
@os_helper.skip_unless_symlink
37893790
def test_realpath_limit_attack(self):
37903791
# (CVE-2025-4517)
37913792

3792-
if not os_helper.can_symlink():
3793-
raise SkipTest('requires symlinking ability')
3794-
37953793
with ArchiveMaker() as arc:
37963794
# populate the symlinks and dirs that expand in os.path.realpath()
37973795
# The number is chosen so that in common cases, the unexpanded

0 commit comments

Comments
 (0)