]> granicus.if.org Git - python/commitdiff
Try to fix test.test_support.rmtree() on Windows for fixing issue28847 tests.
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 3 Dec 2016 05:57:54 +0000 (07:57 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Sat, 3 Dec 2016 05:57:54 +0000 (07:57 +0200)
Lib/test/test_support.py

index e084f3ba047cd67cd217ff0d1e7e0b71e3321043..871f427c4b77be0ab1ea7dc4f4d7d29085f80852 100644 (file)
@@ -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: