Skip to content

Commit 7ae4a88

Browse files
committed
Feed a string to os.readlink()
1 parent b626549 commit 7ae4a88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_tarfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3079,7 +3079,7 @@ def expect_file(self, name, type=None, symlink_to=None, mode=None):
30793079
if type is None and isinstance(name, str) and name.endswith('/'):
30803080
type = tarfile.DIRTYPE
30813081
if symlink_to is not None:
3082-
got = pathlib.Path(os.readlink(self.destdir / name))
3082+
got = pathlib.Path(os.readlink(str(self.destdir / name)))
30833083
expected = pathlib.Path(symlink_to)
30843084
# The symlink might be the same (textually) as what we expect,
30853085
# but some systems change the link to an equivalent path, so

0 commit comments

Comments
 (0)