commit | 935586845815f5b4c7814794413f6a812d4bd45f | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Jun 20 11:10:31 2020 +0300 |
committer | GitHub <noreply@github.com> | Sat Jun 20 11:10:31 2020 +0300 |
tree | 69297d0f173d3b42895adb1da65c99f1e021b586 | |
parent | a041e116db5f1e78222cbf2c22aae96457372680 [diff] [blame] |
bpo-41043: Escape literal part of the path for glob(). (GH-20994)
diff --git a/Lib/test/test_dbm.py b/Lib/test/test_dbm.py index 1db3bef..571da97 100644 --- a/Lib/test/test_dbm.py +++ b/Lib/test/test_dbm.py
@@ -33,7 +33,7 @@ def delete_files(): # we don't know the precise name the underlying database uses # so we use glob to locate all names - for f in glob.glob(_fname + "*"): + for f in glob.glob(glob.escape(_fname) + "*"): test.support.unlink(f)