Skip to content

Commit 491b40f

Browse files
committed
simplify test
1 parent 6b20f0d commit 491b40f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_tarfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1695,8 +1695,8 @@ def mock_chmod_side_effect(path, mode, **kwargs):
16951695
with ArchiveMaker() as arc:
16961696
arc.add('x', symlink_to='.')
16971697
arc.add('x', type=tarfile.DIRTYPE, mode='?rwsrwsrwt')
1698-
arc.add('x', symlink_to=('y/' * 99 + '../' * 99 + outside_tree_dir))
1699-
arc.add('y/' * 99, symlink_to=('../' * 98))
1698+
arc.add('x', symlink_to=('y/' + '../' + outside_tree_dir))
1699+
arc.add('y/', symlink_to=('../' * len(tempdir.split(os.path.sep))))
17001700

17011701
os.makedirs(outside_tree_dir)
17021702
try:

0 commit comments

Comments
 (0)