From: Serhiy Storchaka Date: Sat, 3 Dec 2016 05:57:54 +0000 (+0200) Subject: Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests. X-Git-Tag: v2.7.13rc1~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7653c3806c8a19a8e3e86c21d8679008a6a15afa;p=python Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index e084f3ba04..871f427c4b 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: