summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-07 09:02:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-07 09:02:18 (GMT)
commit43153e4d49100b46a603afa8deeca415eb18d180 (patch)
tree85fcb5017fe9ce2b58baa853868c7b7fedee587b /Lib/test/support
parentc29ba8b48962f59ffd5916731b35ac934f96304a (diff)
parent520348e5c0284668738e0ba98b86e7d1a5fd8600 (diff)
downloadcpython-43153e4d49100b46a603afa8deeca415eb18d180.zip
cpython-43153e4d49100b46a603afa8deeca415eb18d180.tar.gz
cpython-43153e4d49100b46a603afa8deeca415eb18d180.tar.bz2
Issue #28847: dbm.dumb now supports reading read-only files and no longer
writes the index file when it is not changed.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index eb5a89a..09a02da 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -360,9 +360,9 @@ if sys.platform.startswith("win"):
mode = 0
if stat.S_ISDIR(mode):
_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: