Skip to content

Commit cbb31c8

Browse files
committed
gh-160782: fix the symlink test on free-threaded builds
1 parent 538f0eb commit cbb31c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_venv.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,8 @@ def test_symlinked_directory_error(self):
671671
"""
672672
outside = tempfile.mkdtemp()
673673
self.addCleanup(rmtree, outside)
674-
for subdirs in self.ENV_SUBDIRS:
674+
for n in range(1, len(self.lib) + 1):
675+
subdirs = self.lib[:n]
675676
with self.subTest(subdirs=subdirs):
676677
rmtree(self.env_dir)
677678
os.makedirs(os.path.join(self.env_dir, *subdirs[:-1]))

0 commit comments

Comments
 (0)