mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-9949: Enable symlink traversal for ntpath.realpath (GH-15287)
This commit is contained in:
parent
e1c638da6a
commit
75e064962e
8 changed files with 304 additions and 32 deletions
|
@ -3358,10 +3358,7 @@ class OSErrorTests(unittest.TestCase):
|
|||
if hasattr(os, "lchmod"):
|
||||
funcs.append((self.filenames, os.lchmod, 0o777))
|
||||
if hasattr(os, "readlink"):
|
||||
if sys.platform == "win32":
|
||||
funcs.append((self.unicode_filenames, os.readlink,))
|
||||
else:
|
||||
funcs.append((self.filenames, os.readlink,))
|
||||
funcs.append((self.filenames, os.readlink,))
|
||||
|
||||
|
||||
for filenames, func, *func_args in funcs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue