Skip to content

Commit e311480

Browse files
author
Nathan Hawes
committed
[test] Support long paths on windows in more places in rewrite-module-triples.py
1 parent b7ac8f8 commit e311480

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/CrossImport/Inputs/rewrite-module-triples.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def rewrite(parent, names, copy_fn, rm_fn):
4343
else:
4444
copy_fn(path, new_path)
4545

46-
rm_fn(path)
46+
if platform.system() == 'Windows':
47+
rm_fn(u'\\'.join([u'\\\\?', os.path.normpath(path)]))
48+
else:
49+
rm_fn(path)
4750

4851

4952
for parent, dirs, files in os.walk(root_dir, topdown=False):

0 commit comments

Comments
 (0)