Skip to content

Commit 7653c38

Browse files
Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests.
1 parent 1d2cfe2 commit 7653c38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ def _rmtree_inner(path):
239239
fullname = os.path.join(path, name)
240240
if os.path.isdir(fullname):
241241
_waitfor(_rmtree_inner, fullname, waitall=True)
242-
_force_run(path, os.rmdir, fullname)
242+
_force_run(fullname, os.rmdir, fullname)
243243
else:
244-
_force_run(path, os.unlink, fullname)
244+
_force_run(fullname, os.unlink, fullname)
245245
_waitfor(_rmtree_inner, path, waitall=True)
246246
_waitfor(lambda p: _force_run(p, os.rmdir, p), path)
247247
else:

0 commit comments

Comments
 (0)