From 7653c3806c8a19a8e3e86c21d8679008a6a15afa Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sat, 3 Dec 2016 07:57:54 +0200 Subject: [PATCH] Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests. --- Lib/test/test_support.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index e084f3ba047..871f427c4b7 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -239,9 +239,9 @@ if sys.platform.startswith("win"): fullname = os.path.join(path, name) if os.path.isdir(fullname): _waitfor(_rmtree_inner, fullname, waitall=True) - _force_run(path, os.rmdir, fullname) + _force_run(fullname, os.rmdir, fullname) else: - _force_run(path, os.unlink, fullname) + _force_run(fullname, os.unlink, fullname) _waitfor(_rmtree_inner, path, waitall=True) _waitfor(lambda p: _force_run(p, os.rmdir, p), path) else: